Summary
Controls application lifetime in classic desktop style
- Namespace
- Avalonia
.Controls . Application Lifetimes - Interfaces
- Implementing Types
graph BT
Type-.->Interface0["IControlledApplicationLifetime"]
click Interface0 "/api/Avalonia.Controls.ApplicationLifetimes/IControlledApplicationLifetime"
Type-.->Interface1["IApplicationLifetime"]
click Interface1 "/api/Avalonia.Controls.ApplicationLifetimes/IApplicationLifetime"
Type["IClassicDesktopStyleApplicationLifetime"]
class Type type-node
Implementing0["ClassicDesktopStyleApplicationLifetime"]-.->Type
click Implementing0 "/api/Avalonia.Controls.ApplicationLifetimes/ClassicDesktopStyleApplicationLifetime"
Syntax
public interface IClassicDesktopStyleApplicationLifetime : IControlledApplicationLifetime,
IApplicationLifetime
Properties
Name | Value | Summary |
---|---|---|
Args | string[] |
Gets the arguments passed to the
StartWithClassicDesktopLifetime<T>(T, string[], ShutdownMode)
method.
|
MainWindow | Window |
Gets or sets the main window of the application.
|
ShutdownMode | 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 | IReadOnlyList |