Udostępnij za pośrednictwem


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:
 property ApplicationHighContrastAdjustment HighContrastAdjustment { ApplicationHighContrastAdjustment get(); void set(ApplicationHighContrastAdjustment value); };
ApplicationHighContrastAdjustment HighContrastAdjustment();

void HighContrastAdjustment(ApplicationHighContrastAdjustment value);
public ApplicationHighContrastAdjustment HighContrastAdjustment { get; set; }
var applicationHighContrastAdjustment = application.highContrastAdjustment;
application.highContrastAdjustment = applicationHighContrastAdjustment;
Public 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.

Windows requirements

Device family
Windows 10 Creators Update (introduced in 10.0.15063.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v4.0)

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.

For more information about the behavior of this feature, see the remarks for the UIElement.HighContrastAdjustment property.

Applies to