StackPanel
Description
StackPanel extends the WPF StackPanel with uniform spacing between children.

Example usage
- XAML
- C#
<fluence:StackPanel Spacing="10">
<fluence:Button Content="New" />
<fluence:Button Content="Open" />
<fluence:Button Content="Save" />
</fluence:StackPanel>
var panel = new Fluence.Wpf.Controls.StackPanel { Spacing = 10 };
Key properties
| Property | Default | Purpose |
|---|---|---|
Spacing | 0 | Space between consecutive children. |
Orientation | WPF default | Chooses 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.