FrameworkElement.ActualTheme Property
Definition
Gets the UI theme that is currently used by the element, which might be different than the RequestedTheme.
Equivalent WinUI property: Microsoft.UI.Xaml.FrameworkElement.ActualTheme.
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.
Windows 10 requirements
Device family |
Windows 10 Fall Creators Update (introduced in 10.0.16299.0)
|
API contract |
Windows.Foundation.UniversalApiContract (introduced in v5.0)
|