SystemColors.HighlightBrushKey 屬性

定義

取得繪製所選取項目之背景的 SolidColorBrushResourceKey

public:
 static property System::Windows::ResourceKey ^ HighlightBrushKey { System::Windows::ResourceKey ^ get(); };
public static System.Windows.ResourceKey HighlightBrushKey { get; }
static member HighlightBrushKey : System.Windows.ResourceKey
Public Shared ReadOnly Property HighlightBrushKey As ResourceKey

屬性值

繪製所選取項目之背景的 SolidColorBrush 的資源索引碼。 這個筆刷的 IsFrozen 屬性為 true,所以無法修改。

備註

HighlightBrushKey使用 建立筆刷的動態參考,以繪製所選項目的背景。 如果筆刷已變更,這個動態參考會自動更新。 若要建立不會自動更新的靜態參考,請使用 HighlightBrush

XAML Attribute Usage

<object property="{DynamicResource {x:Static SystemColors.HighlightBrushKey}}"/>  

XAML 值

x:Static
x:Static 標記延伸

適用於

另請參閱