Avalonia UI Framework - API - AppBuilder Class

AppBuilder Class

Summary

Initializes platform-specific services for an Application.
Namespace
Avalonia
Base Types
graph TD Base0["AppBuilderBase<TAppBuilder>"]-->Type click Base0 "/api/Avalonia.Controls/AppBuilderBase_1" Base1["object"]-->Base0 Type["AppBuilder"] class Type type-node

Syntax

public sealed class AppBuilder : AppBuilderBase<AppBuilder>

Constructors

Name Summary
AppBuilder()
AppBuilder() Initializes a new instance of the AppBuilder class.
AppBuilder() Initializes a new instance of the AppBuilder class.
AppBuilder()
AppBuilder(Application) Initializes a new instance of the AppBuilder class.
AppBuilder(Application) Initializes a new instance of the AppBuilder class.

Properties

Name Value Summary
AfterSetupCallback Action<T>
Gets or sets a method to call after the Application is setup.
BeforeStartCallback Action<T>
Gets or sets a method to call before Startis called on the Application.
Instance Application
Gets or sets the Application instance being initialized.
RenderingSubsystemInitializer Action
Gets or sets a method to call the initialize the windowing subsystem.
RenderingSubsystemName string
Gets the name of the currently selected rendering subsystem.
RuntimePlatform IRuntimePlatform
Gets or sets the IRuntimePlatform instance.
RuntimePlatformServicesInitializer Action
Gets or sets a method to call the initialize the runtime platform services (e. g. AssetLoader)
Self TAppBuilder
WindowingSubsystemInitializer Action
Gets or sets a method to call the initialize the windowing subsystem.
WindowingSubsystemName string
Gets the name of the currently selected windowing subsystem.

Methods

Name Value Summary
AfterSetup(Action<TAppBuilder>) TAppBuilder
BeforeStarting(Action<TAppBuilder>) TAppBuilder
Registers a callback to call before Start is called on the Application.
Configure(Application) TAppBuilder
Begin configuring an Application.
static
Configure<TApp>() TAppBuilder
Begin configuring an Application.
static
SetupWithoutStarting() TAppBuilder
Sets up the platform-specific services for the application, but does not run it.
Start<TMainWindow>(Func<object>) void
Starts the application with an instance of TMainWindow.
Start<TMainWindow>(TMainWindow, Func<object>) void
Starts the application with the provided instance of TMainWindow.
UseAvaloniaModules() TAppBuilder
UsePlatformDetect() AppBuilder
Instructs the AppBuilder to use the best settings for the platform.
UsePlatformDetect() AppBuilder
Instructs the AppBuilder to use the best settings for the platform.
UseRenderingSubsystem(Action, string) TAppBuilder
Specifies a rendering subsystem to use.
UseRenderingSubsystem(string) TAppBuilder
Specifies a rendering subsystem to use.
UseWindowingSubsystem(Action, string) TAppBuilder
Specifies a windowing subsystem to use.
UseWindowingSubsystem(string) TAppBuilder
Specifies a windowing subsystem to use.

Extension Methods