Skip to main content

Class LayoutBase

A base class for display layouts

Assembly: MicroLayout.dll​
View Source​
Declaration
public abstract class LayoutBase : ThemedControl, ILayout, IThemedControl, IControlContainer, IControl

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

Derived:
Meadow.Foundation.Graphics.MicroLayout.AbsoluteLayout, Meadow.Foundation.Graphics.MicroLayout.AlignmentLayout, Meadow.Foundation.Graphics.MicroLayout.GridLayout, Meadow.Foundation.Graphics.MicroLayout.ListBox, Meadow.Foundation.Graphics.MicroLayout.ScrollingTextArea, Meadow.Foundation.Graphics.MicroLayout.StackLayout

Implements:
Meadow.Foundation.Graphics.MicroLayout.ILayout, Meadow.Foundation.Graphics.MicroLayout.IThemedControl, Meadow.Foundation.Graphics.MicroLayout.IControlContainer, Meadow.Foundation.Graphics.MicroLayout.IControl

Properties​

Controls​

Gets the collection of controls on the display screen.

View Source​
Declaration
public virtual ControlsCollection Controls { get; }

IsVisible​

Gets or sets a value indicating whether the control is visible.

View Source​
Declaration
public override bool IsVisible { get; set; }

BackgroundColor​

Gets or sets the background color of the Layout.

View Source​
Declaration
public Color? BackgroundColor { get; set; }

IsInvalid​

Gets or sets a value indicating whether the control needs to be redrawn.

View Source​
Declaration
public override bool IsInvalid { get; }

Methods​

ApplyTheme(DisplayTheme)​

Applies the specified display theme to the label display control.

View Source​
Declaration
public override void ApplyTheme(DisplayTheme theme)
Parameters​
TypeNameDescription
Meadow.Foundation.Graphics.MicroLayout.DisplayThemethemeThe display theme to apply.

Invalidate()​

Marks the control as invalid, requiring a redraw.

View Source​
Declaration
public override void Invalidate()

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.MicroGraphicsgraphicsThe Meadow.Foundation.Graphics.MicroGraphics surface to draw the control on.

OnParentBoundsChanged(object?, EventArgs)​

Handles changes to the bounds of the parent control and triggers a layout update for the current control.

View Source​
Declaration
protected override void OnParentBoundsChanged(object? sender, EventArgs e)
Parameters​
TypeNameDescription
System.ObjectsenderThe source of the event, typically the parent control.
System.EventArgseAn System.EventArgs instance containing event data.

OnChildrenCollectionChanged(object?, IControl)​

View Source​
Declaration
protected virtual void OnChildrenCollectionChanged(object? sender, IControl control)
Parameters​
TypeName
System.Objectsender
Meadow.Foundation.Graphics.MicroLayout.IControlcontrol

Implements​