IsIndeterminate Property
Collapse the table of content
Expand the table of content

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


Metadata properties set to true


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
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Return to top
© 2015 Microsoft