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)
- C#
- VB
- F#
[NotClientImplementableAttribute]
public interface IClassicDesktopStyleApplicationLifetime : IControlledApplicationLifetime,
IApplicationLifetime
<NotClientImplementableAttribute>
Public Interface IClassicDesktopStyleApplicationLifetime
Inherits IControlledApplicationLifetime, IApplicationLifetime
[<NotClientImplementableAttribute>]
type IClassicDesktopStyleApplicationLifetime =
interface
interface IControlledApplicationLifetime
interface IApplicationLifetime
end
Implements | IApplicationLifetime, IControlledApplicationLifetime |
Properties
Args | Gets the arguments passed to the StartWithClassicDesktopLifetime(AppBuilder, String[], ShutdownMode) 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
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
Exit | Sent when the application is exiting. (Inherited from IControlledApplicationLifetime) |
ShutdownRequested | Raised by the platform when an application shutdown is requested. |
Startup | Sent when the application is starting up. (Inherited from IControlledApplicationLifetime) |