StackPanel
Stacks its children in a single line, vertically (default) or horizontally, with optional spacing.
Properties
Orientation
The stacking axis.
Type: Orientation
Spacing
The gap in points inserted between consecutive visible children.
Type: double
Methods
ArrangeOverride
Content arrangement. Panels override to place their children.
| Parameter | Summary |
|---|---|
Size finalSize | The final size available for the view's content. |
Returns
Size: The arranged content size.
MeasureOverride
Content measurement. Panels recurse; controls delegate to the native SizeThatFits.
| Parameter | Summary |
|---|---|
Size availableSize | The size available for the view's content. |
Returns
Size: The desired content size.