public TextMenuItemDefinition(MenuItemGroupDefinition group, int sortOrder, string text, Uri iconSource = null) : base(group, sortOrder) { _text = text; _iconSource = iconSource; }
public CommandMenuItemDefinition(MenuItemGroupDefinition group, int sortOrder) : base(group, sortOrder) { _commandDefinition = IoC.Get <ICommandService>().GetCommandDefinition(typeof(TCommandDefinition)); }
public CommandMenuItemDefinition(MenuItemGroupDefinition group, int sortOrder) : base(group, sortOrder) { _commandDefinition = IoC.Get <ICommandService>().GetCommandDefinition(typeof(TCommandDefinition)); _keyGesture = IoC.Get <ICommandKeyGestureService>().GetPrimaryKeyGesture(_commandDefinition); }