Table of Contents

Interface IControlledApplicationLifetime

Namespace
Avalonia.Controls.ApplicationLifetimes
Assembly
Avalonia.Controls.dll
[NotClientImplementable]
public interface IControlledApplicationLifetime : IApplicationLifetime

Methods

Shutdown(int)

Shuts down the application and sets the exit code that is returned to the operating system when the application exits.

void Shutdown(int exitCode = 0)

Parameters

exitCode int

An integer exit code for an application. The default exit code is 0.

Events

Exit

Sent when the application is exiting.

event EventHandler<ControlledApplicationLifetimeExitEventArgs> Exit

Event Type

EventHandler<ControlledApplicationLifetimeExitEventArgs>

Startup

Sent when the application is starting up.

event EventHandler<ControlledApplicationLifetimeStartupEventArgs> Startup

Event Type

EventHandler<ControlledApplicationLifetimeStartupEventArgs>