RequestedThemeVariant Property
Gets 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.
Definition
Namespace: Avalonia.Controls
Assembly: Avalonia.Controls (in Avalonia.Controls.dll)
- C#
- VB
- F#
public ThemeVariant? RequestedThemeVariant { get; set; }
Public Property RequestedThemeVariant As ThemeVariant
Get
Set
member RequestedThemeVariant : ThemeVariant with get, set
Property Value
ThemeVariantRemarks
Setting RequestedThemeVariant to Default will apply parent's actual theme variant on the current scope.