Class TextMenuItemDefinition
Represents a definition for a menu item that contains text and an icon.
public class TextMenuItemDefinition : MenuItemDefinition
- Inheritance
-
TextMenuItemDefinition
- Inherited Members
Constructors
TextMenuItemDefinition(MenuItemGroupDefinition, int, ITranslation, Uri)
Initializes a new instance of the see TextMenuItemDefinition class.
public TextMenuItemDefinition(MenuItemGroupDefinition group, int sortOrder, ITranslation text, Uri iconSource = null)
Parameters
group
MenuItemGroupDefinitionGroup that contains the menu item.
sortOrder
intSort order of menu items.
text
ITranslationText of menu item.
iconSource
UriIcon of menu item.
Properties
CommandDefinition
Gets the command definition. Returns null.
public override CommandDefinitionBase CommandDefinition { get; }
Property Value
IconSource
Gets the icon source.
public override Uri IconSource { get; }
Property Value
KeyGesture
Gets the key gesture. Returns null.
public override KeyGesture KeyGesture { get; }
Property Value
Text
Gets the text.
public override string Text { get; }