Class Box
Represents a rectangular display box in the user interface.
Assembly: MicroLayout.dll
View Source
public class Box : ThemedControl, IThemedControl, IControl
Inheritance: System.Object
-> Meadow.Foundation.Graphics.MicroLayout.Control -> Meadow.Foundation.Graphics.MicroLayout.ThemedControl
Implements:
Meadow.Foundation.Graphics.MicroLayout.IThemedControl, Meadow.Foundation.Graphics.MicroLayout.IControl
Properties
IsFilled
Gets or sets a value indicating whether the display box is filled with the foreground color.
View Source
public bool IsFilled { get; set; }
ForeColor
Gets or sets the foreground color of the display box.
View Source
public Color ForeColor { get; set; }
Methods
ApplyTheme(DisplayTheme)
Applies the specified display theme to the display box.
View Source
public override void ApplyTheme(DisplayTheme theme)
Parameters
Type | Name | Description |
---|---|---|
Meadow.Foundation.Graphics.MicroLayout.DisplayTheme | theme | The display theme to apply. |
OnDraw(MicroGraphics)
Draws the display box on the specified Meadow.Foundation.Graphics.MicroGraphics surface.
View Source
protected override void OnDraw(MicroGraphics graphics)
Parameters
Type | Name | Description |
---|---|---|
Meadow.Foundation.Graphics.MicroGraphics | graphics | The Meadow.Foundation.Graphics.MicroGraphics surface to draw the display box on. |