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