Skip to main content

Application Properties

Properties

ActualThemeVariantGets the UI theme that is currently used by the element, which might be different than the RequestedThemeVariantProperty.
ApplicationLifetimeApplication lifetime, use it for things like setting the main window and exiting the app from code Currently supported lifetimes are: - IClassicDesktopStyleApplicationLifetime - ISingleViewApplicationLifetime - IControlledApplicationLifetime - IActivatableApplicationLifetime
CurrentGets the current instance of the Application class.
DataContextGets or sets the Applications's data context.
DataTemplatesGets or sets the application's global data templates.
InheritanceParentGets or sets the parent object that inherited AvaloniaProperty values are inherited from.
(Inherited from AvaloniaObject)
Item(AvaloniaProperty)Gets or sets the value of a AvaloniaProperty.
(Inherited from AvaloniaObject)
Item(IndexerDescriptor)Gets or sets a binding for a AvaloniaProperty.
(Inherited from AvaloniaObject)
NameApplication name to be used for various platform-specific purposes
PlatformSettingsRepresents a contract for accessing global platform-specific settings.
RequestedThemeVariantGets or sets the UI theme variant that is used by the control (and its child elements) for resource determination. The UI theme you specify with ThemeVariant can override the app-level ThemeVariant.
ResourcesGets the application's global resource dictionary.
StylesGets the application's global styles.

See Also

Reference

Application Class
Avalonia Namespace