StyledElementActualThemeVariant Property
Gets the UI theme that is currently used by the element, which might be different than the RequestedThemeVariantProperty.
Namespace: AvaloniaAssembly: Avalonia.Base (in Avalonia.Base.dll) Version: 11.3.999
public ThemeVariant ActualThemeVariant { get; }
Public ReadOnly Property ActualThemeVariant As ThemeVariant
Get
abstract ActualThemeVariant : ThemeVariant with get
override ActualThemeVariant : ThemeVariant with get
ThemeVariant
If current control is contained in the ThemeVariantScope, TopLevel or Application with non-default RequestedThemeVariant, that value will be returned.
Otherwise, current OS theme variant is returned.
IThemeVariantHostActualThemeVariant