Back to Devexpress

DxFlyout.IsOpenChanged Event

blazor-devexpress-dot-blazor-dot-dxflyout-1bf85949.md

latest1.5 KB
Original Source

DxFlyout.IsOpenChanged Event

Fires when the flyout window opens or closes.

Namespace : DevExpress.Blazor

Assembly : DevExpress.Blazor.v25.2.dll

NuGet Package : DevExpress.Blazor

Declaration

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

Parameters

TypeDescription
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.

razor
<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

DxFlyout Class

DxFlyout Members

DevExpress.Blazor Namespace