Class StackLayout
A layout that arranges child elements in a horizontal or vertical stack.
Assembly: MicroLayout.dll
View Source
public class StackLayout : LayoutBase, ILayout, IThemedControl, IControlContainer, IControl
Inheritance: System.Object -> Meadow.Foundation.Graphics.MicroLayout.Control -> Meadow.Foundation.Graphics.MicroLayout.ThemedControl -> Meadow.Foundation.Graphics.MicroLayout.LayoutBase
Implements:
Meadow.Foundation.Graphics.MicroLayout.ILayout, Meadow.Foundation.Graphics.MicroLayout.IThemedControl, Meadow.Foundation.Graphics.MicroLayout.IControlContainer, Meadow.Foundation.Graphics.MicroLayout.IControl
Properties
StackOrientation
Gets or sets the stack orientation.
View Source
public StackLayout.Orientation StackOrientation { get; set; }
AxisAlignment
Gets or sets the alignment of controls perpendicular to the stacking direction.
View Source
public StackLayout.CrossAxisAlignment AxisAlignment { get; set; }
Spacing
Gets or sets the spacing between child elements.
View Source
public int Spacing { get; set; }
Padding
Gets or sets the padding (or indentation) of all controls from all 4 edges.
View Source
public int Padding { get; set; }
Methods
LayoutControls()
Arranges child controls based on the stack orientation and cross-axis alignment, respecting the layout's padding and spacing.
View Source
public void LayoutControls()