Application.HighContrastAdjustment Application.HighContrastAdjustment Application.HighContrastAdjustment Application.HighContrastAdjustment Property

Definition

Gets or sets a value that indicates whether the framework automatically adjusts visual properties when high contrast themes are enabled.

public : ApplicationHighContrastAdjustment HighContrastAdjustment { get; set; }
ApplicationHighContrastAdjustment HighContrastAdjustment();

void HighContrastAdjustment(ApplicationHighContrastAdjustment highcontrastadjustment);
public ApplicationHighContrastAdjustment HighContrastAdjustment { get; set; }
Public ReadWrite Property HighContrastAdjustment As ApplicationHighContrastAdjustment

Property Value

A value of the enumeration that indicates whether the framework automatically adjusts visual properties when high contrast themes are enabled. The default is Auto.

Additional features and requirements

Device family
Windows 10 Creators Update (introduced v10.0.15063.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v4)

Remarks

The value of this property affects all UIElement instances where the UIElement's HighContrastAdjustment has not been explicitly set. Setting it to None provides an easy way to disable the framework's automatic adjustments across all its windows and elements.