ProgressBar.IsIndeterminate Property

Definition

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.

Equivalent WinUI 2 API for UWP: Microsoft.UI.Xaml.Controls.ProgressBar.IsIndeterminate (for WinUI in the Windows App SDK, see the Windows App SDK namespaces).

public:
 property bool IsIndeterminate { bool get(); void set(bool value); };
bool IsIndeterminate();

void IsIndeterminate(bool value);
public bool IsIndeterminate { get; set; }
var boolean = progressBar.isIndeterminate;
progressBar.isIndeterminate = boolean;
Public Property IsIndeterminate As Boolean
<ProgressBar IsIndeterminate="bool"/>

Property Value

Boolean

bool

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.

Remarks

Notes for previous versions

Windows 8.x In an app compiled for Windows 8, when the ProgressBar is indeterminate, the progress animation continues even if it's not visible on the screen, such as when the ProgressBar Visibility is collapsed. This can keep the UI thread awake, use resources, and impair app performance. When the ProgressBar is not visible, you should disable the animation by setting IsIndeterminate to false.

Applies to