次の方法で共有


SystemColors.WindowTextBrushKey プロパティ

定義

ウィンドウのクライアント領域内のテキストを描画する SolidColorBrushResourceKey を取得します。

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

プロパティ値

ResourceKey

ウィンドウのクライアント領域内のテキストを描画する SolidColorBrush の リソース キー。 このブラシの IsFrozen プロパティは true であるため、変更できません。

注釈

WindowTextBrushKeyを使用して、ウィンドウのクライアント領域でテキストを描画するブラシへの動的参照を作成します。 ブラシが変更されると、この動的参照が自動的に更新されます。 自動的に更新されない静的参照を作成するには、次を使用します WindowTextBrush

XAML 属性の使用方法

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

XAML 値

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

適用対象

こちらもご覧ください