FrameworkElement.ActualTheme Property
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();
C#
public ElementTheme ActualTheme { get; }
var elementTheme = frameworkElement.actualTheme;
Public ReadOnly Property ActualTheme As ElementTheme
A value of the enumeration, for example Light.
Produk | Versi |
---|---|
Windows App SDK | 0.8, 1.0, 1.1, 1.2, 1.3, 1.4, 1.5, 1.6 |