SubmenuHeaderTemplateKey Property

MenuItem.SubmenuHeaderTemplateKey Property

 

Gets the resource key for a style applied to a MenuItem when the MenuItem is a header of a submenu.

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

public static ResourceKey SubmenuHeaderTemplateKey { get; }

Property Value

Type: System.Windows.ResourceKey

The resource key for a style applied to a MenuItem when the MenuItem is a header of a submenu.

Use this property to change the style of a MenuItem whose Role property is set to MenuItemRole.SubmenuHeader.

<object property={ MenuItem.SubmenuHeaderTemplateKey}"/>

.NET Framework
Available since 3.0
Return to top
Show:
© 2016 Microsoft