Application.HighContrastAdjustment Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.