Enum WindowCloseReason
Specifies the reason that a window was closed.
public enum WindowCloseReason
Fields
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.
OwnerWindowClosing = 2
The window is closing due to a parent/owner window closing.
Undefined = 0
The cause of the closure was not provided by the underlying platform.
WindowClosing = 1
The window itself was requested to close.