ClassicDesktopStyleApplicationLifetime Class
Definition
Namespace: Avalonia.Controls.ApplicationLifetimes
Assembly: Avalonia.Controls (in Avalonia.Controls.dll)
- C#
- VB
- F#
public class ClassicDesktopStyleApplicationLifetime : IClassicDesktopStyleApplicationLifetime,
IControlledApplicationLifetime, IApplicationLifetime, IDisposable
Public Class ClassicDesktopStyleApplicationLifetime
Implements IClassicDesktopStyleApplicationLifetime, IControlledApplicationLifetime, IApplicationLifetime, IDisposable
type ClassicDesktopStyleApplicationLifetime =
class
interface IClassicDesktopStyleApplicationLifetime
interface IControlledApplicationLifetime
interface IApplicationLifetime
interface IDisposable
end
Inheritance | Object → ClassicDesktopStyleApplicationLifetime |
Implements | IApplicationLifetime, IClassicDesktopStyleApplicationLifetime, IControlledApplicationLifetime, IDisposable |
Constructors
ClassicDesktopStyleApplicationLifetime() | Initializes 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
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
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. |