Windows.UI.Xaml.Controls.ProgressBar.IsIndeterminate

November 30, 2023 · View on GitHub

-description

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).

-xaml-syntax

<ProgressBar IsIndeterminate="bool"/>

-property-value

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.

-examples

-see-also