ProgressBar.IsIndeterminate Property
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets whether the ProgressBar shows actual values or generic, continuous progress feedback.
public:
property bool IsIndeterminate { bool get(); void set(bool value); };
public bool IsIndeterminate { get; set; }
member this.IsIndeterminate : bool with get, set
Public Property IsIndeterminate As Boolean
false
if the ProgressBar shows actual values; true
if the ProgressBar shows generic progress. The default is false
.
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;
Dim progbar As New ProgressBar()
progbar.Background = Brushes.Gray
progbar.Foreground = Brushes.Red
progbar.Width = 150
progbar.Height = 15
progbar.IsIndeterminate = True
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 |
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 |
Feedback pentru .NET
.NET este un proiect open source. Selectați un link pentru a oferi feedback: