public NoteViewModel( IChangeColorCommand changeNoteColorCommand, ChangeNoteTextCommand changeNoteTextCommand) { _changeNoteTextCommand = changeNoteTextCommand; _backgroundColor = new BackgroundColorMixin(changeNoteColorCommand); _backgroundColor.PropertyChanged += (s, e) => NotifyOfPropertyChange(e.PropertyName); _expandable.PropertyChanged += (s, e) => NotifyOfPropertyChange(e.PropertyName); }
public BackgroundColorMixin(IChangeColorCommand command) { _command = command; }