共用方式為


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

Windows 需求

裝置系列
Windows 10 Creators Update (已於 10.0.15063.0 引進)
API contract
Windows.Foundation.UniversalApiContract (已於 v4.0 引進)

備註

此屬性的值會影響尚未明確設定 UIElement的 HighContrastAdjustment的所有UIElement實例。 將它設定為 [無 ] 可讓您輕鬆地在所有視窗和元素上停用架構的自動調整。

如需此功能行為的詳細資訊,請參閱 UIElement.HighContrastAdjustment 屬性的備註。

適用於