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
OrientationThe 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
Methods
ArrangeOverride(int, int)
Positions child elements and determines a size for a StackPanel.
protected override void ArrangeOverride(int arrangeWidth, int arrangeHeight)
Parameters
arrangeWidth
intThe final width of the StackPanel.
arrangeHeight
intThe 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)