Skip to main content

ShutdownMode Enum

Definition

Assembly:Avalonia.Controls
Package:Avalonia
public enum ShutdownMode

Inheritance: Enum -> ShutdownMode

Fields

NameDescription
OnExplicitShutdownIndicates that the application only exits on an explicit call to Application.Shutdown.
OnLastWindowCloseIndicates an implicit call to Application.Shutdown when the last window closes.
OnMainWindowCloseIndicates an implicit call to Application.Shutdown when the main window closes.

OnExplicitShutdown Field

Indicates that the application only exits on an explicit call to Application.Shutdown.

public Avalonia.Controls.ShutdownMode OnExplicitShutdown

OnLastWindowClose Field

Indicates an implicit call to Application.Shutdown when the last window closes.

public Avalonia.Controls.ShutdownMode OnLastWindowClose

OnMainWindowClose Field

Indicates an implicit call to Application.Shutdown when the main window closes.

public Avalonia.Controls.ShutdownMode OnMainWindowClose