Back to Devexpress

DxWaitIndicator.Visible Property

blazor-devexpress-dot-blazor-dot-dxwaitindicator.md

latest1.6 KB
Original Source

DxWaitIndicator.Visible Property

Specifies whether the Wait Indicator is visible.

Namespace : DevExpress.Blazor

Assembly : DevExpress.Blazor.v25.2.dll

NuGet Package : DevExpress.Blazor

Declaration

csharp
[DefaultValue(false)]
[Parameter]
public bool Visible { get; set; }

Property Value

TypeDefaultDescription
Booleanfalse

true to display the component; otherwise, false.

|

Remarks

Use the Visible property to specify when to show the Wait Indicator.

The following example imitates a lengthy operation. During this operation the Button becomes disabled and the Wait Indicator appears.

razor
<DxButton Enabled="!isSending"
          Click="Send"
          RenderStyle="ButtonRenderStyle.Secondary">
    <div class="d-flex">
        <DxWaitIndicator Visible="isSending" />
        <span class="mx-2">@Message</span>
    </div>
</DxButton>

@code{
    bool isSending = false;
    string Message => isSending ? "Sending..." : "Send";
    private async Task Send() {
        isSending = true;
        await Task.Delay(3000);
        isSending = false;
    }
}

See Also

DxWaitIndicator Class

DxWaitIndicator Members

DevExpress.Blazor Namespace