public PreferencesViewModel(Preferences model) { this.model = model; editing = new Preferences(); model.CopyTo(editing); CommitCommand = new RelayCommand(o => Commit()); CancelCommand = new RelayCommand(o => Cancel()); }