Skip to main content
All docs
V25.1
  • DxFlyout.InitializedTask Property

    The task that allows you to wait until the flyout window is initialized.

    Namespace: DevExpress.Blazor

    Assembly: DevExpress.Blazor.v25.1.dll

    NuGet Package: DevExpress.Blazor

    Declaration

    public Task InitializedTask { get; }

    Property Value

    Type Description
    Task

    The task that is completed when the window is initialized.

    Remarks

    Run the task to make sure that the flyout window is initialized.

    <DxButton Text="Show" Click="ShowWindow" aria-describedby="flyout" />
    <DxButton Text="Hide" Click="HideWindow" />
    
    <DxFlyout Id="flyout" @ref="flyoutWindow" Width="400" CloseOnOutsideClick="false"
                BodyText="Lorem ipsum dolor sit amet, consectetur adipiscing elit." />
    
    @code {
        DxFlyout flyoutWindow { get; set; }
    
        async Task ShowWindow(MouseEventArgs args) {
            if (!flyoutWindow.IsInitialized)
                await flyoutWindow.InitializedTask;
                await flyoutWindow.ShowAsync();
        }
        async Task HideWindow(MouseEventArgs args) {
            await flyoutWindow.CloseAsync();
        }
    }
    
    See Also