FrameworkCompatibilityPreferences.AreInactiveSelectionHighlightBrushKeysSupported 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得或設定一個值,指示應用程式是否應該使用 InactiveSelectionHighlightBrush 和 InactiveSelectionHighlightTextBrush 屬性來設定非活躍選取項目的顏色。
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
屬性值
true若應用程式應使用 與InactiveSelectionHighlightBrushInactiveSelectionHighlightTextBrush屬性來表示非活躍選取項目的顏色;否則,false
備註
這個屬性的預設值取決於你的應用程式所針對的 WPF 版本。 如果你的應用程式目標是 WPF 4.0 或更早版本,預設是 false。 如果你的應用程式目標是 WPF 4.5,預設是 true。 如果你用這個屬性來改變 WPF 的行為,你必須在應用程式生命週期的早期就改變該屬性的值,例如在繼承自 Application 的類別建構子中。 讀取後,你無法再更改。