共用方式為


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 屬性的備註。

適用於