Поделиться через


TitleBarTheme Enum

Definition

Defines constants that specify what theme is used in the title bar.

public enum class TitleBarTheme
/// [Windows.Foundation.Metadata.ContractVersion(Microsoft.Foundation.WindowsAppSDKContract, 65543)]
enum class TitleBarTheme
[Windows.Foundation.Metadata.ContractVersion(typeof(Microsoft.Foundation.WindowsAppSDKContract), 65543)]
public enum TitleBarTheme
var value = Microsoft.UI.Windowing.TitleBarTheme.legacy
Public Enum TitleBarTheme
Inheritance
TitleBarTheme
Attributes

Fields

Name Value Description
Legacy 0

Legacy theming is used.

UseDefaultAppMode 1

The Windows default app mode theme is used.

Light 2

The light theme is used.

Dark 3

The dark theme is used.

Remarks

This enumeration provides values for the AppWindowTitleBar.PreferredTheme property.

Applies to