4.550 MenuItem

x:Object > DependencyObject > Visual > UIElement > FrameworkElement > Control > ItemsControl > HeaderedItemsControl > MenuItem, IInputElement
MenuItem
RibbonMenuItem
(usage)
<MenuItem> x:Object* </MenuItem>
(description)
Represents a selectable item inside a Menu.
[content property]
Items
[name property]
Name
[xml lang property]
Language
(properties)
Command
ICommand
(description)
The command associated with the menu item.
CommandParameter
x:Object
(description)
The parameter to pass to the Command property of a MenuItem.
CommandTarget
IInputElement
(description)
The target element on which to raise the specified command.
Icon
x:Object
(description)
The icon that appears in a MenuItem.
InputGestureText
x:String
(description)
The text describing an input gesture that will call the command tied to the specified item.
IsCheckable
x:Boolean
(description)
A value that indicates whether a MenuItem can be checked.
IsChecked
x:Boolean
(description)
A value that indicates whether the MenuItem is checked.
IsSubmenuOpen
x:Boolean
(description)
A value that indicates whether the submenu of the MenuItem is open.
StaysOpenOnClick
x:Boolean
(description)
A value that indicates that the submenu in which this MenuItem is located should not close when this item is clicked.
UsesItemContainerTemplate (4.5)
x:Boolean
(description)
A value that indicates whether the menu selects different item containers, depending on the type of the item in the underlying collection or some other heuristic.
(static properties)
SeparatorStyleKey
ResourceKey
(description)
The resource key for a style applied to a MenuItem when the MenuItem is a Separator.
SubmenuHeaderTemplateKey
ResourceKey
(description)
The resource key for a style applied to a MenuItem when the MenuItem is a header of a submenu.
SubmenuItemTemplateKey
ResourceKey
(description)
The resource key for a style applied to a MenuItem when the MenuItem is a submenu.
TopLevelHeaderTemplateKey
ResourceKey
(description)
The resource key for a style applied to a MenuItem when the MenuItem is a header of a top-level menu.
TopLevelItemTemplateKey
ResourceKey
(description)
The resource key for a style applied to a MenuItem when it is a top-level MenuItem that can invoke commands.
(events)
Checked
Occurs when a menu item is checked.
Click
Occurs when a MenuItem is clicked.
SubmenuClosed
Occurs when the state of the IsSubmenuOpen property changes to false.
SubmenuOpened
Occurs when the state of the IsSubmenuOpen property changes to true.
Unchecked
Occurs when a MenuItem is unchecked.