FrameworkElement.ActualTheme Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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)
|