DockPanel
Description
DockPanel is a WPF Panel that docks children at edges and adds uniform spacing.
Example usage
- XAML
- C#
<fluence:DockPanel>
<fluence:Button DockPanel.Dock="Right" Content="Action" />
<TextBlock Text="Summary" />
</fluence:DockPanel>
var panel = new Fluence.Wpf.Controls.DockPanel { Spacing = 8 };
Key properties
| Property | Default | Purpose |
|---|---|---|
Spacing | 0 | Space between consecutive docked children. |
LastChildFill | true | Makes 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.