Skip to main content

IClassicDesktopStyleApplicationLifetime Interface

Not client implementable.

Note: This interface is not client implementable. You need to enable PrivateApi if you want to implement this interface.

Controls application lifetime in classic desktop style

Definition

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

[NotClientImplementableAttribute]
public interface IClassicDesktopStyleApplicationLifetime : IControlledApplicationLifetime,
IApplicationLifetime
View Source
ImplementsIApplicationLifetime, IControlledApplicationLifetime

Properties

ArgsGets the arguments passed to the StartWithClassicDesktopLifetime(AppBuilder, String[], ShutdownMode) method.
MainWindowGets or sets the main window of the application.
ShutdownModeGets 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
WindowsGets 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

ExitSent when the application is exiting.
(Inherited from IControlledApplicationLifetime)
ShutdownRequestedRaised by the platform when an application shutdown is requested.
StartupSent when the application is starting up.
(Inherited from IControlledApplicationLifetime)

See Also

Reference

Avalonia.Controls.ApplicationLifetimes Namespace