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