コード例 #1
0
    public MenuPageItemViewModel(MenuPageGroupViewModel group, CommandViewModelBase command, bool isExtension = false)
    {
        Group       = group;
        Command     = command;
        SubCommands = new BulkUpdateableCollection <CommandViewModelBase>();
        IsExtension = isExtension;

        Command.PropertyChanged += Command_PropertyChanged;
    }
コード例 #2
0
 public MenuItemViewModel(CommandViewModelBase command)
 {
     Command = command;
 }
コード例 #3
0
    public MenuPageItemViewModel AddSubAction(CommandViewModelBase command)
    {
        SubCommands.Add(command);

        return(this);
    }
コード例 #4
0
 public MenuPageItemViewModel AddAction(CommandViewModelBase command)
 => Group.AddAction(command);