Edit

DockPanel

The DockPanel element is used to position child content along the edge of a layout container.

DockPanel control with different controls docked along each edge of the panel.

Title Description
Create a DockPanel Learn how to create and configure a DockPanel layout container.
Get or Set a Dock Value Learn how to get and set the Dock attached property on child elements.
Partition Space by Using the DockPanel Element Learn how to use DockPanel to partition space in your application.
Choose Between StackPanel and DockPanel Learn when to use StackPanel versus DockPanel for your layout needs.

Styles and templates

DockPanel is a layout panel and doesn't have a visual representation. It doesn't define any template parts or visual states.

See also