Table of Contents

Class StackPanel

Namespace
nanoFramework.Presentation.Controls
Assembly
nanoFramework.Graphics.dll

Implements a layout panel that arranges child elements into a single line that can be oriented horizontally or vertically.

public class StackPanel : Panel
Inheritance
StackPanel
Inherited Members
Extension Methods

Constructors

StackPanel()

Initializes a new instance of the StackPanel class with vertical orientation.

public StackPanel()

StackPanel(Orientation)

Initializes a new instance of the StackPanel class with the specified orientation.

public StackPanel(Orientation orientation)

Parameters

orientation Orientation

The orientation to arrange content in.

Properties

Orientation

Gets or sets a value that indicates the dimension by which child elements are stacked.

public Orientation Orientation { get; set; }

Property Value

Orientation

Methods

ArrangeOverride(int, int)

Positions child elements and determines a size for a StackPanel.

protected override void ArrangeOverride(int arrangeWidth, int arrangeHeight)

Parameters

arrangeWidth int

The final width of the StackPanel.

arrangeHeight int

The final height of the StackPanel.

MeasureOverride(int, int, out int, out int)

Measures the child elements of a StackPanel in anticipation of arranging them during the ArrangeOverride pass.

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

Parameters

availableWidth int

The available width that a parent element can allocate a child element.

availableHeight int

The available height that a parent element can allocate a child element.

desiredWidth int

The desired width of the StackPanel.

desiredHeight int

The desired height of the StackPanel.