WPF MVVM Cancel Edit

Posted by terkri on Stack Overflow See other posts from Stack Overflow or by terkri
Published on 2009-07-07T08:32:26Z Indexed on 2010/05/27 2:41 UTC
Read the original article Hit count: 251

Filed under:
|

How can I implement cancelation of editing an object using MVVM.

For example: I have a list of customers. I choose one customer an click the button "Edit", a dialog window(DataContext is binded to CustomerViewModel) opens and I start editing customer's fields. And then I decide to cancel editing, but the fields of the customer have been already changed, so how can I return a customer to its previous state in MVVM?

© Stack Overflow or respective owner

Related posts about wpf

Related posts about mvvm