Skip to main content

Class StackLayout

A layout that arranges child elements in a horizontal or vertical stack.

Assembly: MicroLayout.dll​
View Source​
Declaration
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​
Declaration
public StackLayout.Orientation StackOrientation { get; set; }

AxisAlignment​

Gets or sets the alignment of controls perpendicular to the stacking direction.

View Source​
Declaration
public StackLayout.CrossAxisAlignment AxisAlignment { get; set; }

Spacing​

Gets or sets the spacing between child elements.

View Source​
Declaration
public int Spacing { get; set; }

Padding​

Gets or sets the padding (or indentation) of all controls from all 4 edges.

View Source​
Declaration
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​
Declaration
public void LayoutControls()

Implements​