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