通过


SystemColors.HighlightTextBrushKey 属性

定义

获取 ResourceKey 绘制选定项的文本的项 SolidColorBrush

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

属性值

绘制选定项文本的资源键 SolidColorBrush 。 此画笔 IsFrozen 的属性是 true,因此无法对其进行修改。

注解

使用 HighlightTextBrushKey 创建对画笔的动态引用,用于绘制选定项的文本。 如果更改画笔,此动态引用将自动更新。 若要创建不自动更新的静态引用,请使用 HighlightTextBrush

XAML 属性用法

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

XAML 值

x:Staticx:Static Markup Extension

适用于

另请参阅