Share via


ProgressBar.IsIndeterminate 属性

定义

获取或设置一个值,该值指示进度栏是使用重复模式报告常规进度,还是基于 Value 属性报告进度。

public:
 property bool IsIndeterminate { bool get(); void set(bool value); };
/// [get: Microsoft.UI.Xaml.CustomAttributes.MUXPropertyChangedCallback(enable=true)]
/// [set: Microsoft.UI.Xaml.CustomAttributes.MUXPropertyChangedCallback(enable=true)]
bool IsIndeterminate();

void IsIndeterminate(bool value);
/// [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyChangedCallback(enable=true)]
/// [get: Microsoft.UI.Xaml.CustomAttributes.MUXPropertyChangedCallback(enable=true)]
/// [set: Microsoft.UI.Xaml.CustomAttributes.MUXPropertyChangedCallback(enable=true)]
bool IsIndeterminate();

void IsIndeterminate(bool value);
public bool IsIndeterminate { [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyChangedCallback(enable=true)] get; [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyChangedCallback(enable=true)] set; }
[Microsoft.UI.Xaml.CustomAttributes.MUXPropertyChangedCallback(enable=true)]
public bool IsIndeterminate { [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyChangedCallback(enable=true)] get; [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyChangedCallback(enable=true)] set; }
var boolean = progressBar.isIndeterminate;
progressBar.isIndeterminate = boolean;
Public Property IsIndeterminate As Boolean

属性值

Boolean

bool

如果进度栏使用重复模式报告一般进度,则为 true;如果进度栏基于 Value 属性报告进度,则为 false。 默认值为 false

属性
Microsoft.UI.Xaml.CustomAttributes.MUXPropertyChangedCallbackAttribute

适用于