Skip to main content

StackPanel

Description​

StackPanel extends the WPF StackPanel with uniform spacing between children.

StackPanel in light mode StackPanel in dark mode

Example usage​

<fluence:StackPanel Spacing="10">
<fluence:Button Content="New" />
<fluence:Button Content="Open" />
<fluence:Button Content="Save" />
</fluence:StackPanel>

Key properties​

PropertyDefaultPurpose
Spacing0Space between consecutive children.
OrientationWPF defaultChooses horizontal or vertical arrangement.

State and behavior​

Spacing changes the gaps between stacked children; orientation changes the layout direction.

The spacing is applied between children; use Orientation to change direction.

Reference​