Skip to main content

DxFlyout.IsInitialized Property

Gets whether the Flyout component is initialized.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v23.2.dll

NuGet Package: DevExpress.Blazor

Declaration

public bool IsInitialized { get; }

Property Value

Type Description
Boolean

true if the component is initialized; otherwise, false.

Remarks

The flyout window cannot be shown until the component is initialized. The initialization starts after the component is rendered for the first time. To track the initialization state from code, use the IsInitialized property. You can run the InitializedTask task to wait until the flyout window is initialized.

<DxButton Text="Show" Click="ShowWindow" />
<DxButton Text="Hide" Click="HideWindow" />

<DxFlyout @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