public MenuPageItemViewModel(MenuPageGroupViewModel group, CommandViewModelBase command, bool isExtension = false) { Group = group; Command = command; SubCommands = new BulkUpdateableCollection <CommandViewModelBase>(); IsExtension = isExtension; Command.PropertyChanged += Command_PropertyChanged; }
public MenuItemViewModel(CommandViewModelBase command) { Command = command; }
public MenuPageItemViewModel AddSubAction(CommandViewModelBase command) { SubCommands.Add(command); return(this); }
public MenuPageItemViewModel AddAction(CommandViewModelBase command) => Group.AddAction(command);