Επεξεργασία

Κοινή χρήση μέσω


SystemColors.MenuTextColorKey Property

Definition

Gets the ResourceKey for the Color of a menu's text.

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

Property Value

The resource key for the Color of a menu's text.

Remarks

Use the MenuTextColorKey to create a dynamic reference to the menu text system color. This dynamic reference will automatically update if the color is changed. To create a static reference that does not update automatically, use MenuTextColor.

XAML Attribute Usage

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

XAML Values

x:Static
The x:Static Markup Extension.

Applies to

See also