Application.HighContrastAdjustment 属性

定义

获取或设置一个值,该值指示框架是否在启用高对比度主题时自动调整视觉属性。

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

属性值

枚举的一个值,该值指示框架是否在启用高对比度主题时自动调整视觉属性。 默认值为 Auto

注解

此属性的值会影响尚未显式设置 UIElement的 HighContrastAdjustment 的所有 UIElement 实例。 将其设置为 None 提供了一种在框架的所有窗口和元素中禁用自动调整的简单方法。

有关此功能行为的详细信息,请参阅 UIElement.HighContrastAdjustment 属性的备注。

适用于