次の方法で共有


SystemColors.HighlightTextColorKey プロパティ

定義

選択した項目のテキストのColorResourceKeyを取得します。

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

プロパティ値

選択したアイテムのテキストの Color のリソース キー。

注釈

HighlightTextColorKeyを使用して、強調表示テキスト システムの色への動的参照を作成します。 この動的参照は、色が変更されると自動的に更新されます。 自動的に更新されない静的参照を作成するには、 HighlightTextColorを使用します。

XAML 属性の使用法

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

XAML 値

x:Staticx:Static マークアップ拡張機能

適用対象

こちらもご覧ください