ClassicDesktopStyleApplicationLifetime Class

Definition

Namespace: Avalonia.Controls.ApplicationLifetimes
Assembly: Avalonia.Controls (in Avalonia.Controls.dll) Version: 11.3.999
public class ClassicDesktopStyleApplicationLifetime : IClassicDesktopStyleApplicationLifetime, 
	IControlledApplicationLifetime, IApplicationLifetime, IDisposable
Inheritance
Object    ClassicDesktopStyleApplicationLifetime
Implements
IApplicationLifetime, IClassicDesktopStyleApplicationLifetime, IControlledApplicationLifetime, IDisposable

Constructors

ClassicDesktopStyleApplicationLifetimeInitializes a new instance of the ClassicDesktopStyleApplicationLifetime class

Properties

Args Gets the arguments passed to the AppBuilder Start 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

DisposeReleases all resources used by the ClassicDesktopStyleApplicationLifetime
Equals(Object)Determines whether the specified object is equal to the current object.
(Inherited from Object)
FinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
GetHashCodeServes as the default hash function.
(Inherited from Object)
GetTypeGets the Type of the current instance.
(Inherited from Object)
MemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Shutdown(Int32) 
Start Since the lifetime must be set up/prepared with 'args' before executing Start(), an overload with no parameters seems more suitable for integrating with some lifetime manager providers, such as MS HostApplicationBuilder.
Start(String) 
ToStringReturns a string that represents the current object.
(Inherited from Object)
TryShutdown(Int32) 

Events

Exit Sent when the application is exiting.
ShutdownRequested Raised by the platform when an application shutdown is requested.
Startup Sent when the application is starting up.

See Also