Skip to main content

WindowCloseReason Enumeration

Specifies the reason that a window was closed.

Definition

Namespace: Avalonia.Controls
Assembly: Avalonia.Controls (in Avalonia.Controls.dll)

public enum WindowCloseReason

Members

Undefined0The cause of the closure was not provided by the underlying platform.
WindowClosing1The window itself was requested to close.
OwnerWindowClosing2The window is closing due to a parent/owner window closing.
ApplicationShutdown3The window is closing due to the application shutting down.
OSShutdown4The window is closing due to the operating system shutting down.

See Also

Reference

Avalonia.Controls Namespace