WindowCloseReason Enumeration
Specifies the reason that a window was closed.
Definition
Namespace: Avalonia.Controls
Assembly: Avalonia.Controls (in Avalonia.Controls.dll)
- C#
- VB
- F#
public enum WindowCloseReason
Public Enumeration WindowCloseReason
type WindowCloseReason
Members
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. |