# DockManager.Dock method (1 of 2)

Docks the specified item using its docking history and returns whether the operation succeeded.

**Namespace:** [`Eremex.AvaloniaUI.Controls.Docking`](../index.md)  
**Assembly:** `Eremex.Avalonia.Controls.dll`  
**NuGet Package:** [Eremex.Avalonia.Controls](https://www.nuget.org/packages/Eremex.Avalonia.Controls)

## Declaration

```csharp
public bool Dock(DockItemBase item)
```

## See Also

* class [DockItemBase](../DockItemBase.md)
* class [DockManager](../DockManager.md)
* namespace [Eremex.AvaloniaUI.Controls.Docking](../index.md)

---

# DockManager.Dock method (2 of 2)

Docks the specified item relative to the target using the specified dock type and returns whether the operation succeeded.

**Namespace:** [`Eremex.AvaloniaUI.Controls.Docking`](../index.md)  
**Assembly:** `Eremex.Avalonia.Controls.dll`  
**NuGet Package:** [Eremex.Avalonia.Controls](https://www.nuget.org/packages/Eremex.Avalonia.Controls)

## Declaration

```csharp
public bool Dock(DockItemBase item, DockItemBase target, DockType dockType)
```

## See Also

* class [DockItemBase](../DockItemBase.md)
* class [DockManager](../DockManager.md)
* namespace [Eremex.AvaloniaUI.Controls.Docking](../index.md)

<!-- DO NOT EDIT: generated by xmldocmd for Eremex.Avalonia.Controls.dll -->
