MenuItem.TopLevelHeaderTemplateKey Property

Definition

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

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

Property Value

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

Remarks

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

XAML Attribute Usage

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

Applies to