Skip to main content

ClassicDesktopStyleApplicationLifetime Class

Definition

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

public class ClassicDesktopStyleApplicationLifetime : IClassicDesktopStyleApplicationLifetime, 
IControlledApplicationLifetime, IApplicationLifetime, IDisposable
View Source
InheritanceObject → ClassicDesktopStyleApplicationLifetime
ImplementsIApplicationLifetime, IClassicDesktopStyleApplicationLifetime, IControlledApplicationLifetime, IDisposable

Constructors

ClassicDesktopStyleApplicationLifetime()Initializes a new instance of the ClassicDesktopStyleApplicationLifetime class

Properties

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

Dispose()Releases all resources used by the ClassicDesktopStyleApplicationLifetime
Equals(Object)Determines whether the specified object is equal to the current object.
(Inherited from Object)
Finalize()Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
GetHashCode()Serves as the default hash function.
(Inherited from Object)
GetType()Gets the Type of the current instance.
(Inherited from Object)
MemberwiseClone()Creates 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[]) 
ToString()Returns a string that represents the current object.
(Inherited from Object)
TryShutdown(Int32) 

Events

ExitSent when the application is exiting.
ShutdownRequestedRaised by the platform when an application shutdown is requested.
StartupSent when the application is starting up.

See Also

Reference

Avalonia.Controls.ApplicationLifetimes Namespace