ElementTheme enumeration

Applies to Windows and Windows Phone

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

Syntax


public enum ElementTheme


<object property="enumMemberName"/> 
 

Attributes

[Version(0x06030000)]
[WebHostHidden()]

Members

The ElementTheme enumeration has these members.

MemberValueDescription
Default0

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

Light1

Use the Light default theme.

Dark2

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.

Requirements

Minimum supported client

Windows 8.1

Minimum supported server

Windows Server 2012 R2

Minimum supported phone

Windows Phone 8.1 [Windows Runtime apps only]

Namespace

Windows.UI.Xaml
Windows::UI::Xaml [C++]

Metadata

Windows.winmd

See also

ApplicationTheme
RequestedTheme

 

 

Show:
© 2014 Microsoft