How to cancel an edit to an object using MVVM?

Check out the IEditableObject interface. Your Customer class should implement that, and your commands can execute BeginEdit / CancelEdit / EndEdit as appropriate.

Leave a Comment