AppBuilderBase<TAppBuilder> Class

Summary

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

Syntax

public abstract class AppBuilderBase<TAppBuilder> 
    where TAppBuilder : AppBuilderBase<TAppBuilder>, new()

Type Parameters

Name Description
TAppBuilder The type of the AppBuilder class itself.

Constructors

Properties

Name Value Summary
AfterSetupCallback Action<TAppBuilder>
Gets or sets a method to call after the Application is setup.
BeforeStartCallback Action<TAppBuilder>
Gets or sets a method to call before Start is called on the Application.
CheckSetup bool
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
SetExitMode(ExitMode) TAppBuilder
Sets the shutdown mode of the application.
SetupWithoutStarting() TAppBuilder
Sets up the platform-specific services for the application, but does not run it.
Start(AppBuilderBase<TAppBuilder>.AppMainDelegate, string[]) void
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
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.
With<T>(Func<T>) TAppBuilder
Configures platform-specific options
With<T>(T) TAppBuilder
Configures platform-specific options

Extension Methods