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

ProgressBar.IsIndeterminate Property

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

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.

Namespace:  System.Windows.Controls
Assembly:  System.Windows (in System.Windows.dll)
XMLNS for XAML: Not mapped to an xmlns.

public bool IsIndeterminate { get; set; }
<ProgressBar IsIndeterminate="bool"/>

Property Value

Type: 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.

Dependency property identifier field: IsIndeterminateProperty

When this property is true, the progress bar displays a repeating pattern to indicate generic progress. In this case, the Value property is ignored.

Windows Phone OS 7.1 Windows Phone OS 7.1: Using the ProgressBar control in Windows Phone OS 7.1 can have a negative effect on app performance, particularly when the IsIndeterminate property is used. Instead, apps should use the ProgressIndicator class, which displays a progress bar in the system tray, or create a custom progress bar that is optimized for the phone as described in How to create a custom indeterminate progress bar for Windows Phone 8. If your app targets Windows Phone 8, you should use the ProgressBar class.

The following example demonstrates a ProgressBar with the IsIndeterminate property set to true.


<TextBlock HorizontalAlignment="Center" 
    Margin="10" Text="Indeterminate Progress Bar" />
<ProgressBar x:Name="pg2" Margin="10" Height="15" 
    IsIndeterminate="True"   />


Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2018 Microsoft