Class ProgressBar
Represents a control that indicates the progress of an operation.
Inherited Members
Namespace: System.Windows.Controls
Assembly: OpenSilver.dll
Syntax
[TemplatePart(Name = "ProgressBarIndicator", Type = typeof(FrameworkElement))]
[TemplatePart(Name = "ProgressBarTrack", Type = typeof(FrameworkElement))]
public class ProgressBar : RangeBase, IControl, IFrameworkElement, IUIElement, IDependencyObject
Constructors
| Improve this Doc View SourceProgressBar()
Initializes a new instance of the ProgressBar class.
Declaration
public ProgressBar()
Fields
| Improve this Doc View SourceIsIndeterminateProperty
Identifies the IsIndeterminate dependency property.
Declaration
public static readonly DependencyProperty IsIndeterminateProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
Properties
| Improve this Doc View SourceIsIndeterminate
Gets or sets a value that indicates whether the progress bar reports generic progress with a repeating pattern or reports progress based on the Value property.
Declaration
public bool IsIndeterminate { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | true if the progress bar reports generic progress with a repeating pattern; false if the progress bar reports progress based on the Value property. The default is false. |
Methods
| Improve this Doc View SourceOnApplyTemplate()
Builds the visual tree for the ProgressBar control when a new template is applied.
Declaration
public override void OnApplyTemplate()
Overrides
| Improve this Doc View SourceOnCreateAutomationPeer()
Returns a ProgressBarAutomationPeer for use by the Silverlight automation infrastructure.
Declaration
protected override AutomationPeer OnCreateAutomationPeer()
Returns
Type | Description |
---|---|
AutomationPeer | A ProgressBarAutomationPeer for the ProgressBar object. |
Overrides
| Improve this Doc View SourceOnMaximumChanged(Double, Double)
Called when value of the Maximum property changes.
Declaration
protected override void OnMaximumChanged(double oldMaximum, double newMaximum)
Parameters
Type | Name | Description |
---|---|---|
System.Double | oldMaximum | The previous value. |
System.Double | newMaximum | The new value. |
Overrides
| Improve this Doc View SourceOnMinimumChanged(Double, Double)
Called when value of the Minimum property changes.
Declaration
protected override void OnMinimumChanged(double oldMinimum, double newMinimum)
Parameters
Type | Name | Description |
---|---|---|
System.Double | oldMinimum | The previous value. |
System.Double | newMinimum | The new value. |
Overrides
| Improve this Doc View SourceOnValueChanged(Double, Double)
Called when value of the Value property changes.
Declaration
protected override void OnValueChanged(double oldValue, double newValue)
Parameters
Type | Name | Description |
---|---|---|
System.Double | oldValue | The previous value. |
System.Double | newValue | The new value. |