You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# DockPanel
The `DockPanel` control is a `Panel` which lays out its children by "docking" them to the sides or floating in the center.
```markup
```
The `LastChildFill` property means that the last child will fill any remaining space in the panel.
The `DockPanel.Dock` attached property is used to control which side an element is docked to. The options are `Left`, `Top` , `Right` and `Bottom`.
![](<../../.gitbook/assets/image (18) (1) (1) (1) (1) (1) (1) (1).png>)
### Reference
[DockPanel](http://reference.avaloniaui.net/api/Avalonia.Controls/DockPanel/)
### Source code
[DockPanel.cs](https://github.com/AvaloniaUI/Avalonia/blob/master/src/Avalonia.Controls/DockPanel.cs)