AppBuilder Class

Initializes platform-specific services for an Application.

Definition

Namespace: Avalonia
Assembly: Avalonia.Controls (in Avalonia.Controls.dll) Version: 11.3.999
public sealed class AppBuilder
Inheritance
Object    AppBuilder

Properties

AfterPlatformServicesSetupCallback 
AfterSetupCallback Gets a method to call after the Application is setup.
ApplicationType Gets the type of the Instance (even if it's not created yet)
Instance Gets the Application instance being initialized.
LifetimeOverride Gets a method to override a lifetime factory.
Obsolete.
RenderingSubsystemInitializer Gets or sets a method to call the initialize the windowing subsystem.
RenderingSubsystemName Gets the name of the currently selected rendering subsystem.
RuntimePlatformServicesInitializer Gets or sets a method to call the initialize the runtime platform services (e. g. AssetLoader)
RuntimePlatformServicesName Gets the name of the currently selected windowing subsystem.
WindowingSubsystemInitializer Gets or sets a method to call the initialize the windowing subsystem.
WindowingSubsystemName Gets the name of the currently selected windowing subsystem.

Methods

AfterApplicationSetup(ActionAppBuilder) 
AfterPlatformServicesSetup(ActionAppBuilder) 
AfterSetup(ActionAppBuilder) 
ConfigureTApp Begin configuring an Application.
ConfigureTApp(FuncTApp) Begin configuring an Application.
ConfigureFonts(ActionFontManager) Registers an action that is executed with the current font manager.
Equals(Object)Determines whether the specified object is equal to the current object.
(Inherited from Object)
GetHashCodeServes as the default hash function.
(Inherited from Object)
GetTypeGets the Type of the current instance.
(Inherited from Object)
SetupWithLifetime(IApplicationLifetime) Sets up the platform-specific services for the application and initialized it with a particular lifetime, but does not run it.
SetupWithoutStarting Sets up the platform-specific services for the application, but does not run it.
Start(AppBuilderAppMainDelegate, String) 
ToStringReturns a string that represents the current object.
(Inherited from Object)
UseRenderingSubsystem(Action, String) Specifies a rendering subsystem to use.
UseRuntimePlatformSubsystem(Action, String) Specifies a runtime platform subsystem to use.
UseStandardRuntimePlatformSubsystem Specifies a standard runtime platform subsystem to use.
UseWindowingSubsystem(Action, String) Specifies a windowing subsystem to use.
WithT(FuncT) Configures platform-specific options
WithT(T) Configures platform-specific options

Extension Methods

LogToTrace(LogEventLevel, String) Logs Avalonia events to the Trace sink.
(Defined by LoggingExtensions)
SetupWithClassicDesktopLifetime(String, ActionIClassicDesktopStyleApplicationLifetime) Setups the Application with a IClassicDesktopStyleApplicationLifetime, but doesn't show the main window and doesn't run application main loop.
(Defined by ClassicDesktopStyleApplicationLifetimeExtensions)
StartWithClassicDesktopLifetime(String, ActionIClassicDesktopStyleApplicationLifetime) Starts the Application with a IClassicDesktopStyleApplicationLifetime, shows main window and runs application main loop.
(Defined by ClassicDesktopStyleApplicationLifetimeExtensions)
StartWithClassicDesktopLifetime(String, ShutdownMode) Starts the Application with a IClassicDesktopStyleApplicationLifetime, shows main window and runs application main loop.
(Defined by ClassicDesktopStyleApplicationLifetimeExtensions)
WithSystemFontSource(Uri)
(Defined by SystemFontAppBuilderExtension)

See Also