Skip to main content

DxFlyout.IsOpenChanged Event

Fires when the flyout window opens or closes.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v24.1.dll

NuGet Package: DevExpress.Blazor

Declaration

[Parameter]
public EventCallback<bool> IsOpenChanged { get; set; }

Parameters

Type Description
Boolean

A new value of the IsOpen property.

Remarks

The IsOpenChanged event occurs when the IsOpen property value is changed. For instance, it fires when a user closes the window or when you call the ShowAsync or CloseAsync method.

<DxButton Id="show-flyout" Click="() => IsOpen = !IsOpen">Show a flyout window</DxButton>
<DxFlyout IsOpen="@IsOpen" IsOpenChanged="OnIsOpenChanged" PositionTarget="#show-flyout"
          Width="400" BodyText="Lorem ipsum dolor sit amet.">
</DxFlyout>

@code {
    bool IsOpen { get; set; } = false;
    async Task OnIsOpenChanged (bool isOpen) {
      // your code
    }
}
See Also