Class ClassicDesktopStyleApplicationLifetimeExtensions
- Namespace
- Avalonia
- Assembly
- Avalonia.Controls.dll
IClassicDesktopStyleApplicationLifetime related AppBuilder extensions.
public static class ClassicDesktopStyleApplicationLifetimeExtensions
- Inheritance
-
ClassicDesktopStyleApplicationLifetimeExtensions
- Inherited Members
Methods
SetupWithClassicDesktopLifetime(AppBuilder, string[], Action<IClassicDesktopStyleApplicationLifetime>?)
Setups the Application with a IClassicDesktopStyleApplicationLifetime, but doesn't show the main window and doesn't run application main loop.
public static AppBuilder SetupWithClassicDesktopLifetime(this AppBuilder builder, string[] args, Action<IClassicDesktopStyleApplicationLifetime>? lifetimeBuilder = null)
Parameters
builder
AppBuilderApplication builder.
args
string[]Startup arguments.
lifetimeBuilder
Action<IClassicDesktopStyleApplicationLifetime>Lifetime builder to modify the lifetime before application started.
Returns
- AppBuilder
Exit code.
StartWithClassicDesktopLifetime(AppBuilder, string[], ShutdownMode)
Starts the Application with a IClassicDesktopStyleApplicationLifetime, shows main window and runs application main loop.
public static int StartWithClassicDesktopLifetime(this AppBuilder builder, string[] args, ShutdownMode shutdownMode)
Parameters
builder
AppBuilderApplication builder.
args
string[]Startup arguments.
shutdownMode
ShutdownModeLifetime shutdown mode.
Returns
- int
Exit code.
StartWithClassicDesktopLifetime(AppBuilder, string[], Action<IClassicDesktopStyleApplicationLifetime>?)
Starts the Application with a IClassicDesktopStyleApplicationLifetime, shows main window and runs application main loop.
public static int StartWithClassicDesktopLifetime(this AppBuilder builder, string[] args, Action<IClassicDesktopStyleApplicationLifetime>? lifetimeBuilder = null)
Parameters
builder
AppBuilderApplication builder.
args
string[]Startup arguments.
lifetimeBuilder
Action<IClassicDesktopStyleApplicationLifetime>Lifetime builder to modify the lifetime before application started.
Returns
- int
Exit code.