FrameworkCompatibilityPreferences.AreInactiveSelectionHighlightBrushKeysSupported 屬性

定義

取得或設定值,指出應用程式是否應該針對非現用選取文字的色彩,使用 InactiveSelectionHighlightBrushInactiveSelectionHighlightTextBrush 屬性。

public:
 static property bool AreInactiveSelectionHighlightBrushKeysSupported { bool get(); void set(bool value); };
public static bool AreInactiveSelectionHighlightBrushKeysSupported { get; set; }
static member AreInactiveSelectionHighlightBrushKeysSupported : bool with get, set
Public Shared Property AreInactiveSelectionHighlightBrushKeysSupported As Boolean

屬性值

如果影用程式應該針對非現用所選項目的色彩使用 InactiveSelectionHighlightBrushInactiveSelectionHighlightTextBrush 屬性,則為 true,否則為 false

備註

此屬性的預設值取決於應用程式的目標 WPF 版本。 如果您的應用程式是以 WPF 4.0 或更早版本為目標,則預設值為 false 。 如果您的應用程式以 WPF 4.5 為目標,則預設值為 true 。 如果您使用這個屬性來變更 WPF 的行為,您必須在應用程式的存留期內提早變更屬性值,例如繼承自 Application 之類別的建構函式。 讀取值之後,您無法再次變更此值。

適用於