Exemplo n.º 1
0
 public ContentMenuItem(BaseCommand command) : this(command, command.Name)
 {
     this.baseCommand = command;
     this.Icon        = new ImageSourceVM(command.Icon);
     this.baseCommand.PropertyChanged += CommandOnPropertyChanged;
 }
Exemplo n.º 2
0
 public static void Add(this IList <ContentMenuItem> list, BaseCommand command)
 {
     list.Add(new ContentMenuItem(command));
 }