ApplicationApplicationLifetime Property

Application lifetime, use it for things like setting the main window and exiting the app from code Currently supported lifetimes are: - IClassicDesktopStyleApplicationLifetime - ISingleViewApplicationLifetime - IControlledApplicationLifetime - IActivatableApplicationLifetime

Definition

Namespace: Avalonia
Assembly: Avalonia.Controls (in Avalonia.Controls.dll) Version: 11.3.999
public IApplicationLifetime? ApplicationLifetime { get; set; }

Property Value

IApplicationLifetime

See Also