public TextMenuItemDefinition(MenuItemGroupDefinition group, int sortOrder, string text, Uri iconSource = null)
     : base(group, sortOrder)
 {
     _text = text;
     _iconSource = iconSource;
 }
예제 #2
0
 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);
 }
예제 #4
0
 public TextMenuItemDefinition(MenuItemGroupDefinition group, int sortOrder, string text, Uri iconSource = null)
     : base(group, sortOrder)
 {
     _text       = text;
     _iconSource = iconSource;
 }