Skip to main content

ShutdownMode Property

Gets or sets the ShutdownMode. This property indicates whether the application is shutdown explicitly or implicitly. If ShutdownMode is set to OnExplicitShutdown the application is only closes if Shutdown is called. The default is OnLastWindowClose

Definition​

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

public ShutdownMode ShutdownMode { get; set; }

Property Value​

ShutdownMode
The shutdown mode.

Implements​

IClassicDesktopStyleApplicationLifetime.ShutdownMode

See Also​

Reference​

ClassicDesktopStyleApplicationLifetime Class
Avalonia.Controls.ApplicationLifetimes Namespace