Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

MenuItem.TopLevelHeaderTemplateKey Property

 

Gets the resource key for a style applied to a MenuItem when the MenuItem is a header of a top-level menu.

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

public static ResourceKey TopLevelHeaderTemplateKey { 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 top-level menu.

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

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

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