ElementTheme 列舉

定義

指定應該用於應用程式 UI 個別 UIElement 部分的 UI 主題。

public enum class ElementTheme
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
enum class ElementTheme
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
public enum ElementTheme
Public Enum ElementTheme
<object property="enumMemberName"/> 
 
繼承
ElementTheme
屬性

Windows 需求

裝置系列
Windows 10 (已於 10.0.10240.0 引進)
API contract
Windows.Foundation.UniversalApiContract (已於 v1.0 引進)

欄位

Dark 2

使用 深色 預設主題。

Default 0

使用 專案的 Application.RequestedTheme 值。 此為預設值。

Light 1

使用 淺色 預設主題。

備註

這個列舉會當做 RequestedTheme 屬性的值使用。

注意

在 Windows 上,將 RequestedTheme 設定為 [預設] 一律會導致 「深色」成為主題。 在Windows Phone上,使用預設值會導致系統主題的查詢,如使用者所設定。

適用於

另請參閱