IClassicDesktopStyleApplicationLifetime Interface

Controls application lifetime in classic desktop style

Definition

Namespace: Avalonia.Controls.ApplicationLifetimes
Assembly: Avalonia.Controls (in Avalonia.Controls.dll) Version: 11.3.999
[NotClientImplementableAttribute]
public interface IClassicDesktopStyleApplicationLifetime : IControlledApplicationLifetime, 
	IApplicationLifetime
Implements
IApplicationLifetime, IControlledApplicationLifetime

Properties

Args Gets the arguments passed to the StartWithClassicDesktopLifetime(AppBuilder, String, ShutdownMode) method.
MainWindow Gets or sets the main window of the application.
ShutdownMode 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
Windows Gets the list of all open windows in the application.

Methods

Shutdown(Int32) Shuts down the application and sets the exit code that is returned to the operating system when the application exits.
(Inherited from IControlledApplicationLifetime)
TryShutdown(Int32) Tries to Shutdown the application. ShutdownRequested event can be used to cancel the shutdown.

Events

Exit Sent when the application is exiting.
(Inherited from IControlledApplicationLifetime)
ShutdownRequested Raised by the platform when an application shutdown is requested.
Startup Sent when the application is starting up.
(Inherited from IControlledApplicationLifetime)

See Also