MenuStyleKey Property

ToolBar.MenuStyleKey Property


Gets the Style applied to menus on a ToolBar.

Namespace:   System.Windows.Controls
Assembly:  PresentationFramework (in PresentationFramework.dll)

public static ResourceKey MenuStyleKey { get; }

Property Value

Type: System.Windows.ResourceKey

A resource key that represents the default style for menus on the toolbar.

Use this property to change the default style of Menu controls on the ToolBar.

<object property="{ ToolBar.MenuStyleKey}"/>

Legacy Code Example

The following example uses this property to apply a Style to Menu controls on a ToolBar.

Code snippet is not found. Confirm that the code snippet name 'ToolBar_snip' is correct.

.NET Framework
Available since 3.0
Return to top
© 2015 Microsoft