Back to Devexpress

WindowClosingEventArgs.CloseReason Property

blazor-devexpress-dot-blazor-dot-windowclosingeventargs.md

latest1.4 KB
Original Source

WindowClosingEventArgs.CloseReason Property

Identifies the action that closes the Window.

Namespace : DevExpress.Blazor

Assembly : DevExpress.Blazor.v25.2.dll

NuGet Package : DevExpress.Blazor

Declaration

csharp
public WindowCloseReason CloseReason { get; }

Property Value

TypeDescription
WindowCloseReason

A value that identifies the close action reason.

|

Available values:

NameDescription
Programmatically

You set the Visible property to false or call the CloseAsync method.

| | EscapePress |

A user presses Escape.

| | CloseButtonClick |

A user clicks a custom Close button (if you called the predefined CloseCallback to create this button).

|

Remarks

Refer to the Closing event description for additional information and an example.

See Also

WindowClosingEventArgs Class

WindowClosingEventArgs Members

DevExpress.Blazor Namespace