Skip to main content

Class GradientBox

Represents a rectangular gradient display box in the user interface.

Assembly: MicroLayout.dll​
View Source​
Declaration
public class GradientBox : ThemedControl, IThemedControl, IControl

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

Implements:
Meadow.Foundation.Graphics.MicroLayout.IThemedControl

Properties​

IsHorizontal​

Gets or sets a value indicating whether the gradient direction is horizontal or vertical.

View Source​
Declaration
public bool IsHorizontal { get; set; }

StartColor​

Gets or sets the start color of the gradient box. Left color if Horizontal, Top color if vertical.

View Source​
Declaration
public Color StartColor { get; set; }

EndColor​

Gets or sets the start color of the gradient box. Right color if Horizontal, Bottom color if vertical.

View Source​
Declaration
public Color EndColor { get; set; }

Methods​

ApplyTheme(DisplayTheme)​

Applies the specified display theme to the display gradient box.

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

OnDraw(MicroGraphics)​

Draws the display gradient box on the specified Meadow.Foundation.Graphics.MicroGraphics surface.

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

Implements​