Skip to main content

DockPanel

Description​

DockPanel is a WPF Panel that docks children at edges and adds uniform spacing.

DockPanel in light mode DockPanel in dark mode

Example usage​

<fluence:DockPanel>
<fluence:Button DockPanel.Dock="Right" Content="Action" />
<TextBlock Text="Summary" />
</fluence:DockPanel>

Key properties​

PropertyDefaultPurpose
Spacing0Space between consecutive docked children.
LastChildFilltrueMakes the final child fill the remaining area.

State and behavior​

Dock attached properties pin children to edges while the final child fills remaining space.

Unlike the native WPF DockPanel, this panel supplies Spacing. Use the WPF DockPanel.Dock attached property to position children.

Reference​