Share via


FrameworkElement.ActualTheme Property

Definition

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

public:
 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