Table of Contents

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

orientation Orientation
spacing float

Properties

Orientation

Stacking direction.

public Orientation Orientation { get; set; }

Property Value

Orientation

Spacing

Space between children.

public float Spacing { get; set; }

Property Value

float

Methods

ArrangeOverride(Rect)

Arranges children inside the final bounds.

protected override void ArrangeOverride(Rect bounds)

Parameters

bounds Rect

MeasureOverride(Size)

Natural size of the content for the available size (margins excluded).

protected override Size MeasureOverride(Size available)

Parameters

available Size

Returns

Size