blazor-devexpress-dot-blazor-dot-dxflyout-74cdf0ab.md
The task that allows you to wait until the flyout window is initialized.
Namespace : DevExpress.Blazor
Assembly : DevExpress.Blazor.v25.2.dll
NuGet Package : DevExpress.Blazor
public Task InitializedTask { get; }
| Type | Description |
|---|---|
| Task |
The task that is completed when the window is initialized.
|
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