Check out the IEditableObject
interface. Your Customer
class should implement that, and your commands can execute BeginEdit
/ CancelEdit
/ EndEdit
as appropriate.
More Related Contents:
- INotifyPropertyChanged vs. DependencyProperty in ViewModel
- Pushing read-only GUI properties back into ViewModel
- What framework for MVVM should I use? [closed]
- Firing a double click event from a WPF ListView item using MVVM
- Open File Dialog MVVM
- What is a ViewModelLocator and what are its pros/cons compared to DataTemplates?
- How to correctly bind to a dependency property of a usercontrol in a MVVM framework
- WPF MVVM TreeView SelectedItem
- Keyboard events in a WPF MVVM application?
- How to open a new window using MVVM Light Toolkit
- Grouping items in a ComboBox
- ItemsControl with multiple DataTemplates for a viewmodel
- WPF Grid as ItemsPanel for a list dynamically bound to an ItemsControl
- VirtualizingStackPanel + MVVM + multiple selection
- WPF Animation “Cannot freeze this Storyboard timeline tree for use across threads”
- Binding [VisualStateManager] view state to a MVVM viewmodel?
- Is Josh Smith’s implementation of the RelayCommand flawed?
- Prism Custom Confirmation Interaction
- Binding a WPF DataGridComboBoxColumn with MVVM
- MVVM and the TextBox’s SelectedText property
- InputBindings work only when focused
- Is MVVM pattern broken?
- WPF Context menu on left click
- Keybinding a RelayCommand
- MVVM pattern violation: MediaElement.Play()
- WPF MvvM DataGrid Dynamic Columns
- What exactly are “WPF services”?
- MenuItem style with icon creates only one icon
- How to automatically scale font size for a group of controls?
- How can I tell my DataTemplate to bind to a property in the PARENT ViewModel?