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 Property IsIndeterminate As Boolean

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.

Dim progbar As 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: