ElementTheme

June 22, 2022 ยท View on GitHub

-description

Specifies a UI theme that should be used for individual UIElement parts of an app UI.

-xaml-syntax

<object property="enumMemberName"/> 
 

-enum-fields

-field Default:0

Use the Application.RequestedTheme value for the element. This is the default.

-field Light:1

Use the Light default theme.

-field Dark:2

Use the Dark default theme.

-remarks

This enumeration is used as a value by the RequestedTheme property.

Note

On Windows, setting RequestedTheme to Default will always result in "Dark" being the theme. On Windows Phone, using the Default value will result in a query for the system theme, as set by the user.

-examples

-see-also

ApplicationTheme, RequestedTheme