Class MenuDefinition
Represents the definition of a menu.
public class MenuDefinition : MenuDefinitionBase
- Inheritance
-
MenuDefinition
- Inherited Members
Constructors
MenuDefinition(MenuBarDefinition, int, ITranslation)
Initializes a new instance of the MenuDefinition class.
public MenuDefinition(MenuBarDefinition menuBar, int sortOrder, ITranslation text)
Parameters
menuBar
MenuBarDefinitionMenu bar to which this menu definition belongs
sortOrder
intSort order.
text
ITranslationMenu text.
Exceptions
- ArgumentNullException
Thrown
menuBar
is null.
Properties
CommandDefinition
Gets the command definition. Returns null.
public override CommandDefinitionBase CommandDefinition { get; }
Property Value
IconSource
Gets the URI for the icon. Returns null.
public override Uri IconSource { get; }
Property Value
KeyGesture
Gets key gesture associated with this item. Returns null.
public override KeyGesture KeyGesture { get; }
Property Value
MenuBar
Gets the definition of the menu bar to which this menu definition belongs.
public MenuBarDefinition MenuBar { get; }
Property Value
SortOrder
Gets the sort order.
public override int SortOrder { get; }
Property Value
Text
Gets the text of this item.
public override string Text { get; }