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 : MicroLayout, IThemedControl, IControl

Inheritance: System.Object -> Meadow.Foundation.Graphics.MicroLayout.Control

Implements:
Meadow.Foundation.Graphics.MicroLayout.IThemedControl

Properties

StackOrientation

Gets or sets the stack orientation.

View Source
Declaration
public StackLayout.Orientation StackOrientation { get; set; }

Spacing

Gets or sets the spacing between child elements.

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

Methods

LayoutControls()

Arranges child controls based on the stack orientation and indentation.

View Source
Declaration
public void LayoutControls()

Add(IControl)

Adds a control to the layout and updates positions.

View Source
Declaration
public void Add(IControl control)
Parameters
TypeNameDescription
Meadow.Foundation.Graphics.MicroLayout.IControlcontrolThe control to add.

OnDraw(MicroGraphics)

Performs the actual drawing of the control on the specified Meadow.Foundation.Graphics.MicroGraphics surface. This method must be implemented in derived classes.

View Source
Declaration
protected override void OnDraw(MicroGraphics graphics)
Parameters
TypeNameDescription
Meadow.Foundation.Graphics.MicroGraphics surface to draw the control on.

Implements