Class RDFormsApplication
- Namespace
- RDCore.Forms.Avalonia
- Assembly
- RDCore.Forms.Avalonia.dll
An Avalonia application for a host that has none of its own: Avalonia's Simple theme, which gives the controls their templates.
public class RDFormsApplication : Application, INotifyPropertyChanged, IDataContextProvider, IGlobalDataTemplates, IDataTemplateHost, IGlobalStyles, IStyleHost, IThemeVariantHost, IResourceHost, IResourceNode, IOptionalFeatureProvider
- Inheritance
-
AvaloniaObjectApplicationRDFormsApplication
- Implements
-
IDataContextProviderIGlobalDataTemplatesIDataTemplateHostIGlobalStylesIStyleHostIThemeVariantHostIResourceHostIResourceNodeIOptionalFeatureProvider
- Inherited Members
-
Application.DataContextPropertyApplication.ActualThemeVariantPropertyApplication.RequestedThemeVariantPropertyApplication.NamePropertyApplication.RegisterServices()Application.OnFrameworkInitializationCompleted()Application.OnPropertyChanged(AvaloniaPropertyChangedEventArgs)Application.DataContextApplication.RequestedThemeVariantApplication.ActualThemeVariantApplication.CurrentApplication.DataTemplatesApplication.ResourcesApplication.StylesApplication.ApplicationLifetimeApplication.PlatformSettingsApplication.NameApplication.ResourcesChangedApplication.ActualThemeVariantChangedAvaloniaObject.CheckAccess()AvaloniaObject.VerifyAccess()AvaloniaObject.ClearValue(AvaloniaProperty)AvaloniaObject.ClearValue<T>(AvaloniaProperty<T>)AvaloniaObject.ClearValue<T>(StyledProperty<T>)AvaloniaObject.ClearValue<T>(DirectPropertyBase<T>)AvaloniaObject.GetHashCode()AvaloniaObject.GetValue(AvaloniaProperty)AvaloniaObject.GetValue<T>(StyledProperty<T>)AvaloniaObject.GetValue<T>(DirectPropertyBase<T>)AvaloniaObject.GetBaseValue<T>(StyledProperty<T>)AvaloniaObject.IsAnimating(AvaloniaProperty)AvaloniaObject.IsSet(AvaloniaProperty)AvaloniaObject.SetValue<T>(StyledProperty<T>, T, BindingPriority)AvaloniaObject.SetValue<T>(DirectPropertyBase<T>, T)AvaloniaObject.SetCurrentValue<T>(StyledProperty<T>, T)AvaloniaObject.Bind(AvaloniaProperty, BindingBase)AvaloniaObject.CoerceValue(AvaloniaProperty)AvaloniaObject.OnPropertyChangedCore(AvaloniaPropertyChangedEventArgs)AvaloniaObject.RaisePropertyChanged<T>(DirectPropertyBase<T>, T, T)AvaloniaObject.SetAndRaise<T>(DirectPropertyBase<T>, ref T, T)AvaloniaObject.InheritanceParentAvaloniaObject.this[AvaloniaProperty]AvaloniaObject.this[IndexerDescriptor]AvaloniaObject.DispatcherAvaloniaObject.PropertyChanged
Remarks
A host that has an Avalonia application keeps it: the controls and RDFormsFormWindow need an application with a theme, whichever application it is.
Configure() builds it with Skia and the Inter font, so that text measures the same on every machine. The host adds the platform: Avalonia's desktop platform to show windows, or its headless platform to show none.
Methods
Configure()
The builder of an RDFormsApplication, which draws with Skia and whose default font is Inter. The host adds its platform and starts it.
public static AppBuilder Configure()
Returns
- AppBuilder
The application's builder.
Configure<TApplication>()
The builder of an application derived from RDFormsApplication, which draws with Skia and whose default font is Inter.
public static AppBuilder Configure<TApplication>() where TApplication : RDFormsApplication, new()
Returns
- AppBuilder
The application's builder.
Type Parameters
TApplicationThe application.
Initialize()
Adds the Simple theme to the application's styles.
public override void Initialize()