ClassicDesktopStyleApplicationLifetimeExtensionsStartWithClassicDesktopLifetime(AppBuilder, String, ActionIClassicDesktopStyleApplicationLifetime) Method
Starts the Application with a IClassicDesktopStyleApplicationLifetime, shows main window and runs application main loop.
Namespace: AvaloniaAssembly: Avalonia.Controls (in Avalonia.Controls.dll) Version: 11.3.999
public static int StartWithClassicDesktopLifetime(
this AppBuilder builder,
string[] args,
Action<IClassicDesktopStyleApplicationLifetime>? lifetimeBuilder = null
)
<ExtensionAttribute>
Public Shared Function StartWithClassicDesktopLifetime (
builder As AppBuilder,
args As String(),
Optional lifetimeBuilder As Action(Of IClassicDesktopStyleApplicationLifetime) = Nothing
) As Integer
[<ExtensionAttribute>]
static member StartWithClassicDesktopLifetime :
builder : AppBuilder *
args : string[] *
?lifetimeBuilder : Action<IClassicDesktopStyleApplicationLifetime>
(* Defaults:
let _lifetimeBuilder = defaultArg lifetimeBuilder null
*)
-> int
- builder AppBuilder
- Application builder.
- args String
- Startup arguments.
- lifetimeBuilder ActionIClassicDesktopStyleApplicationLifetime (Optional)
- Lifetime builder to modify the lifetime before application started.
Int32Exit code.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).