Where to implement undo/redo functionality

Topics: Prism v2 - Silverlight 3
Oct 16, 2009 at 11:01 PM


What is the best way to implement an undo/redo functionality in PRISM?



Oct 17, 2009 at 12:16 AM


You may want to check out the IEditableObject interface. I've used it with great success.


Let me know if that helps.


Oct 17, 2009 at 1:35 AM
Edited Oct 17, 2009 at 3:25 PM

Then the question is where in the PRISM architecture would I implement this IEditableObject interface?

Should I create a module to handle this?

Should my centralized model module handle this?

Any other place?




Oct 17, 2009 at 1:41 AM

Your ViewModel or whatever objects you are binding against would implement the interface.

Check out this screencast:  http://www.silverlight.net/learn/videos/silverlight-videos/dataform-control/

Oct 23, 2009 at 5:02 AM

I had the same question. I eventually decided to created business objects that implemented IEditableObject and they are exposed through my viewmodels.