DxProgressBar.SetSuccessStatusOnComplete Property
Specifies whether the progress status should be changed to Success
when the Value reaches the MaxValue
Namespace: DevExpress.Blazor
Assembly: DevExpress.Blazor.v24.1.dll
NuGet Package: DevExpress.Blazor
Declaration
[Parameter]
public bool SetSuccessStatusOnComplete { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
|
Remarks
You can use the Status property to specify the progress status. If the property is not specified, the component automatically sets the Success
status when the Value reaches the MaxValue.
Set the SetSuccessStatusOnComplete
property to false
to disable this behavior.
<DxProgressBar Value="value" SetSuccessStatusOnComplete="false" />
@code {
int value = 0;
bool running;
private void RunProgress() {
if (running) return;
running = true;
InvokeAsync(async () => {
while (running && value < 100) {
await Task.Delay(20);
value++;
StateHasChanged();
}
running = false;
});
}
}
See Also