Skip to main content

WindowCloseReason Enum

Definition​

Assembly:Avalonia.Controls
Package:Avalonia

Specifies the reason that a window was closed.

public enum WindowCloseReason

Inheritance: Enum -> WindowCloseReason

Fields​

NameDescription
ApplicationShutdownThe window is closing due to the application shutting down.
OSShutdownThe window is closing due to the operating system shutting down.
OwnerWindowClosingThe window is closing due to a parent/owner window closing.
UndefinedThe cause of the closure was not provided by the underlying platform.
WindowClosingThe window itself was requested to close.

ApplicationShutdown Field​

The window is closing due to the application shutting down.

public Avalonia.Controls.WindowCloseReason ApplicationShutdown

OSShutdown Field​

The window is closing due to the operating system shutting down.

public Avalonia.Controls.WindowCloseReason OSShutdown

OwnerWindowClosing Field​

The window is closing due to a parent/owner window closing.

public Avalonia.Controls.WindowCloseReason OwnerWindowClosing

Undefined Field​

The cause of the closure was not provided by the underlying platform.

public Avalonia.Controls.WindowCloseReason Undefined

WindowClosing Field​

The window itself was requested to close.

public Avalonia.Controls.WindowCloseReason WindowClosing