WindowCloseReason Enumeration

Specifies the reason that a window was closed.

Definition

Namespace: Avalonia.Controls
Assembly: Avalonia.Controls (in Avalonia.Controls.dll) Version: 11.3.999
C#
public enum WindowCloseReason

Members

Undefined0 The cause of the closure was not provided by the underlying platform.
WindowClosing1 The window itself was requested to close.
OwnerWindowClosing2 The window is closing due to a parent/owner window closing.
ApplicationShutdown3 The window is closing due to the application shutting down.
OSShutdown4 The window is closing due to the operating system shutting down.

See Also