Class StackPanel
- Namespace
- PluginUI
- Assembly
- PluginUI.dll
Stacks children vertically or horizontally with optional spacing.
public class StackPanel : Panel
- Inheritance
-
StackPanel
- Inherited Members
Constructors
StackPanel()
Creates a stack panel.
public StackPanel()
StackPanel(Orientation, float)
Creates a stack panel with an orientation and spacing.
public StackPanel(Orientation orientation, float spacing = 0)
Parameters
orientationOrientationspacingfloat
Properties
Orientation
Stacking direction.
public Orientation Orientation { get; set; }
Property Value
Spacing
Space between children.
public float Spacing { get; set; }
Property Value
Methods
ArrangeOverride(Rect)
Arranges children inside the final bounds.
protected override void ArrangeOverride(Rect bounds)
Parameters
boundsRect
MeasureOverride(Size)
Natural size of the content for the available size (margins excluded).
protected override Size MeasureOverride(Size available)
Parameters
availableSize