Share via

FrameworkElement.ActualTheme Property


Gets the UI theme that is currently used by the element, which might be different than the RequestedTheme.

 property ElementTheme ActualTheme { ElementTheme get(); };
ElementTheme ActualTheme();
public ElementTheme ActualTheme { get; }
var elementTheme = frameworkElement.actualTheme;
Public ReadOnly Property ActualTheme As ElementTheme

Property Value

A value of the enumeration, for example Light.

The value of this property will not be Default.

Windows requirements

Device family
Windows 10 Fall Creators Update (introduced in 10.0.16299.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v5.0)

Applies to