Share via

UIElementType Enum


Defines the set of user interface element types.

public enum class UIElementType
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
enum class UIElementType
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
public enum UIElementType
var value = Windows.UI.ViewManagement.UIElementType.activeCaption
Public Enum UIElementType

Windows requirements

Device family
Windows 10 (introduced in 10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v1.0)


AccentColor 1000

Windows accent color (Settings -> Personalization -> Colors -> Choose your accent color).

ActiveCaption 0

An active caption element.

Background 1

A background element.

ButtonFace 2

A button face element.

ButtonText 3

The text displayed on a button.

CaptionText 4

The text displayed in a caption.

GrayText 5

Grayed text.

Highlight 6

A highlighted user interface (UI) element.

HighlightText 7

Highlighted text.

Hotlight 8

A hotlighted UI element.

InactiveCaption 9

An inactive caption element.

InactiveCaptionText 10

The text displayed in an inactive caption element.

NonTextHigh 1005

Non-text ink highlighter high color.

NonTextLow 1009

Non-text ink highlighter low color.

NonTextMedium 1007

Non-text ink highlighter medium color.

NonTextMediumHigh 1006

Non-text ink highlighter medium-high color.

NonTextMediumLow 1008

Non-text ink highlighter medium-low color.

OverlayOutsidePopup 1012

Popup outside overlay.

PageBackground 1010

Page background.

PopupBackground 1011

Popup background.

TextContrastWithHigh 1004

Text contrast with ink highlighter.

TextHigh 1001

Text ink highlighter high color.

TextLow 1003

Text ink highlighter low color.

TextMedium 1002

Text ink highlighter medium color.

Window 11

A window.

WindowText 12

The text displayed in a window's UI decoration.

Applies to