ClassicDesktopStyleApplicationLifetimeExtensionsSetupWithClassicDesktopLifetime Method

Setups the Application with a IClassicDesktopStyleApplicationLifetime, but doesn't show the main window and doesn't run application main loop.

Definition

Namespace: Avalonia
Assembly: Avalonia.Controls (in Avalonia.Controls.dll) Version: 11.3.999
public static AppBuilder SetupWithClassicDesktopLifetime(
	this AppBuilder builder,
	string[] args,
	Action<IClassicDesktopStyleApplicationLifetime>? lifetimeBuilder = null
)

Parameters

builder  AppBuilder
Application builder.
args  String
Startup arguments.
lifetimeBuilder  ActionIClassicDesktopStyleApplicationLifetime  (Optional)
Lifetime builder to modify the lifetime before application started.

Return Value

AppBuilder
Exit code.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type AppBuilder. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

See Also