blazor-devexpress-dot-blazor-dot-dxflyout.md
Specifies whether the flyout window is open.
Namespace : DevExpress.Blazor
Assembly : DevExpress.Blazor.v25.2.dll
NuGet Package : DevExpress.Blazor
[Parameter]
public bool IsOpen { get; set; }
| Type | Description |
|---|---|
| Boolean |
true if the window is open; otherwise, false.
|
Implement two-way binding for the IsOpen property to open and close the flyout window in code and update the property value when a user closes the window. The IsOpenChanged event occurs when the property value changes.
<DxButton Id="targetButton" Click="() => IsOpen = !IsOpen">Show/Hide a flyout window</DxButton>
<DxFlyout @bind-IsOpen=IsOpen
PositionTarget="#targetButton"
Width=400
BodyText="Lorem ipsum dolor sit amet, consectetur adipiscing elit.">
</DxFlyout>
@code {
bool IsOpen { get; set; } = false;
}
You can handle the following events related to the IsOpen property’s changes:
The ShowAsync and CloseAsync methods allow you to show and close the flyout window asynchronously.
See Also