How to implement IEditableObject for View Model?
Suppose I have VM with some entities as property. Say People, Addres, Phone, .... Then I want to implelemt IEditableObject on VM so that u开发者_如何转开发ser have undo functionnality.
What's the best way to implement request?
Demo code please.
Have a look at following two links which have good examples
http://www.a2zdotnet.com/View.aspx?Id=135
Using IEditableObject In Silverlight
IEditableObject
doesn't make sense on a view model since all commands from the view such as Edit, Cancel, etc. are implemented in the view model itself. At best you can use IEditableObject
internally in your view model on the data classes to make them easier to manage.
精彩评论