Class ProgressBar
Represents a progress bar control in the user interface.
Assembly: MicroLayout.dll
View Source
public class ProgressBar : 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
Value
Gets or set the Value for the ProgressBar
View Source
public int Value { get; set; }
Minimum
Gets or set the minimum Value for the ProgressBar
View Source
public int Minimum { get; set; }
Maximum
Gets or set the maximum Value for the ProgressBar
View Source
public int Maximum { get; set; }
ValueColor
Gets or sets the foreground (value) color to fill on the ProgressBar
View Source
public Color ValueColor { get; set; }
BackColor
Gets or sets the background (non-value) color to fill on the ProgressBar
View Source
public Color BackColor { get; set; }
BorderColor
Gets or sets the border color to around the ProgressBar
View Source
public Color BorderColor { get; set; }
Methods
ApplyTheme(DisplayTheme)
Applies the specified display theme to the control.
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)
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
protected override void OnDraw(MicroGraphics graphics)
Parameters
Type | Name | Description |
---|---|---|
Meadow.Foundation.Graphics.MicroGraphics | graphics | The Meadow.Foundation.Graphics.MicroGraphics surface to draw the control on. |