SystemColors.GrayTextColorKey 属性

定义

获取ResourceKeyColor禁用的文本。

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

属性值

已禁用文本的资源键 Color

注解

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

XAML 属性用法

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

XAML 值

x:Staticx:Static Markup Extension

适用于

另请参阅