通过


SystemColors.WindowTextColorKey 属性

定义

获取ResourceKeyColor窗口工作区中的文本。

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

属性值

窗口工作区中文本的资源键 Color

注解

使用 WindowTextColorKey 创建对窗口文本系统颜色的动态引用。 如果更改颜色,此动态引用将自动更新。 若要创建不自动更新的静态引用,请使用 WindowTextColor

XAML 属性用法

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

XAML 值

x:Staticx:Static Markup Extension

适用于

另请参阅