WindowCloseReason Enumeration
Specifies the reason that a window was closed.
Namespace: Avalonia.ControlsAssembly: Avalonia.Controls (in Avalonia.Controls.dll) Version: 11.3.999
public enum WindowCloseReason
Public Enumeration WindowCloseReason
| Undefined | 0 |
The cause of the closure was not provided by the underlying platform.
|
| WindowClosing | 1 |
The window itself was requested to close.
|
| OwnerWindowClosing | 2 |
The window is closing due to a parent/owner window closing.
|
| ApplicationShutdown | 3 |
The window is closing due to the application shutting down.
|
| OSShutdown | 4 |
The window is closing due to the operating system shutting down.
|