Rediger

Del via


SystemColors.MenuBarColorKey Property

Definition

Gets the ResourceKey for the background Color of a menu bar.

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

Property Value

The resource key for the background Color of a menu bar.

Remarks

Use the MenuBarColorKey to create a dynamic reference to the color of a menu bar. This dynamic reference will automatically update if the color is changed. To create a static reference that does not update automatically, use MenuBarColor.

XAML Attribute Usage

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

XAML Values

x:Static
The x:Static Markup Extension.

Applies to

See also