Skip to main content

StackPanel Class

Namespace: GHIElectronics.TinyCLR.UI.Controls · Assembly: GHIElectronics.TinyCLR.UI

No description available.

public class StackPanel : Panel

Constructors

StackPanel()

public StackPanel() : this(Orientation.Vertical)

No description available.

StackPanel(Orientation orientation)

public StackPanel(Orientation orientation)

No description available.

ParameterTypeDescription
orientationOrientation

Properties

Orientation

public Orientation Orientation { get; set; }

Logical screen rotation. (inherited)

Methods

MeasureOverride(int availableWidth, int availableHeight, out int desiredWidth, out int desiredHeight)

protected override void MeasureOverride(int availableWidth, int availableHeight, out int desiredWidth, out int desiredHeight)

Measurement override. Implement your size-to-content logic here. (inherited)

ParameterTypeDescription
availableWidthintAvailable size that parent can give to the child. May be MaxValue(when parent wants to measure to content). This is soft constraint. Child can return bigger size to indicate that it wants bigger space and hope that parent can throw in scrolling...
availableHeightint
desiredWidthout int
desiredHeightout int

ArrangeOverride(int arrangeWidth, int arrangeHeight)

protected override void ArrangeOverride(int arrangeWidth, int arrangeHeight)

ArrangeOverride allows for the customization of the positioning of children. (inherited)

ParameterTypeDescription
arrangeWidthint
arrangeHeightint