Where to implement undo/redo functionality

Topics: Prism v2 - Silverlight 3
Oct 17, 2009 at 12:01 AM


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



Oct 17, 2009 at 1: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 2:35 AM
Edited Oct 17, 2009 at 4: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 2: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 6:02 AM

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