Skip to main content

ProgressBar Class

NuGet: GHIElectronics.TinyCLR.UI
Assembly: GHIElectronics.TinyCLR.UI
Namespace: GHIElectronics.TinyCLR.UI.Controls

A bar control that visually fills to indicate progress toward a maximum value.

public class ProgressBar : Image, IDisposable

Constructors​

ProgressBar()​

public ProgressBar() : base()

Initializes a new instance of the ProgressBar class.

Properties​

Direction​

public Direction Direction { get; set; }

The direction in which the fill grows.

MaxValue​

public int MaxValue { get; set; }

The value at which the bar is considered completely full.

Value​

public int Value { get; set; }

The current progress value.

Alpha​

public ushort Alpha { get; set; }

The opacity applied when rendering the bar.

RadiusBorder​

public int RadiusBorder { get; set; }

Corner radius in pixels for the Scale9Image-rendered bar.

Border​

public int Border { get; set; }

Legacy alias for RadiusBorder. Will be removed.

Methods​

OnRender(DrawingContext dc)​

public override void OnRender(DrawingContext dc)

Renders the progress bar background and its proportional fill.

Dispose()​

public void Dispose()

Releases the bitmap resources used by the progress bar.

Dispose(bool disposing)​

protected virtual void Dispose(bool disposing)

Releases the bitmap resources used by the progress bar.