IControlledApplicationLifetime Interface

graph BT Type-.->Interface0["IApplicationLifetime"] click Interface0 "/api/Avalonia.Controls.ApplicationLifetimes/IApplicationLifetime" Type["IControlledApplicationLifetime"] class Type type-node Implementing0["IClassicDesktopStyleApplicationLifetime"]-.->Type click Implementing0 "/api/Avalonia.Controls.ApplicationLifetimes/IClassicDesktopStyleApplicationLifetime" Implementing1["ClassicDesktopStyleApplicationLifetime"]-.->Type click Implementing1 "/api/Avalonia.Controls.ApplicationLifetimes/ClassicDesktopStyleApplicationLifetime"

Syntax

public interface IControlledApplicationLifetime : IApplicationLifetime

Events

Name Type Summary
Exit EventHandler<ControlledApplicationLifetimeExitEventArgs>
Sent when the application is exiting.
Startup EventHandler<ControlledApplicationLifetimeStartupEventArgs>
Sent when the application is starting up.

Methods

Name Value Summary
Shutdown(int) void
Shuts down the application and sets the exit code that is returned to the operating system when the application exits.