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)

ShutdownMode ShutdownMode { get; set; }
View Source

Property Value​

ShutdownMode
The shutdown mode.

See Also​

Reference​

IClassicDesktopStyleApplicationLifetime Interface
Avalonia.Controls.ApplicationLifetimes Namespace