Uredi

Deli z drugimi prek


MenuItem.TopLevelItemTemplateKey Property

Definition

Gets the resource key for a style applied to a MenuItem when it is a top-level MenuItem that can invoke commands.

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

Property Value

The resource key for a style applied to a MenuItem when it is a top-level MenuItem that can invoke commands.

Remarks

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

XAML Attribute Usage

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

Applies to