Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

ProgressBar.IsIndeterminate Property

 

Gets or sets whether the ProgressBar shows actual values or generic, continuous progress feedback.

Namespace:   System.Windows.Controls
Assembly:  PresentationFramework (in PresentationFramework.dll)

public bool IsIndeterminate { get; set; }

Property Value

Type: System.Boolean

false if the ProgressBar shows actual values; true if the ProgressBar shows generic progress. The default is false.

When this property is true, the ProgressBar animates a few bars moving across the ProgressBar in a continuous manner and ignores the Value property.

Identifier field

IsIndeterminateProperty

Metadata properties set to true

None

The following example sets the IsIndeterminate property to true to create a ProgressBar that shows generic progress.

ProgressBar progbar = new ProgressBar();
progbar.Background = Brushes.Gray;
progbar.Foreground = Brushes.Red;
progbar.Width = 150;
progbar.Height = 15;
progbar.IsIndeterminate = true;

.NET Framework
Available since 3.0
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Return to top
Show:
© 2016 Microsoft