Class ProgressBar
- Namespace
- PluginUI
- Assembly
- PluginUI.dll
Progress indicator: determinate (0..1 with optional percentage text) or indeterminate (animated sweep). Useful for preset loading, sample analysis or license activation.
public class ProgressBar : Control
- Inheritance
-
ProgressBar
- Inherited Members
Constructors
ProgressBar()
Creates a progress bar.
public ProgressBar()
Properties
DefaultSize
Natural size used when no explicit size is given.
protected override Size DefaultSize { get; }
Property Value
IsIndeterminate
Animated sweep instead of a known progress.
public bool IsIndeterminate { get; set; }
Property Value
Orientation
Bar orientation.
public Orientation Orientation { get; set; }
Property Value
ShowText
Shows the percentage (determinate mode).
public bool ShowText { get; set; }
Property Value
Value
Progress 0..1.
public double Value { get; set; }
Property Value
Methods
OnAttached()
Called when the element joins a host (subscribe to external events here).
protected override void OnAttached()
OnDetached()
Called when the element leaves its host (unsubscribe here).
protected override void OnDetached()
RenderVector(DrawingContext, Rect, VectorStyle)
Vector rendering of the widget area.
protected override void RenderVector(DrawingContext dc, Rect widget, VectorStyle style)
Parameters
dcDrawingContextwidgetRectstyleVectorStyle