ProgressBar.IsIndeterminate Property

Definition

Gets or sets whether the ProgressBar shows actual values or generic, continuous progress feedback.

public bool IsIndeterminate { get; set; }

Property Value

false if the ProgressBar shows actual values; true if the ProgressBar shows generic progress. The default is false.

Examples

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;

Remarks

When this property is true, the ProgressBar animates a few bars moving across the ProgressBar in a continuous manner and ignores the Value property.

Dependency Property Information

Identifier field IsIndeterminateProperty
Metadata properties set to true None

Applies to

Produs Versiuni
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9