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.

Applies to