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.

Definition

Namespace: Avalonia.Controls
Assembly: Avalonia.Controls (in Avalonia.Controls.dll) Version: 11.3.999
public ThemeVariant? RequestedThemeVariant { get; set; }

Property Value

ThemeVariant

Remarks

Setting RequestedThemeVariant to Default will apply parent's actual theme variant on the current scope.

See Also