Question

PropertyGrid Undo/Redo

Posted 4 months ago by Avatar Roger

I would like to implement undo/redo in PropertyGrid.

Do you have easy way to implement?

I checked on Web and there was comments.

https://blog.actiprosoftware.com/post/2010/04/08/Upcoming-PropertyGrid-for-WPF-enhancements-events-and-collection-editing

These events allow you to better track changes made through the PropertyGrid, including capturing undo/redo related information.


Comments (1)

Posted 4 months ago by Actipro Software Support - Cleveland, OH, USA

Hi Roger,

We haven't implemented an undo/redo system in PropertyGrid, but I suppose watching some of the events like PropertyValueChanging/ed might allow you to log various changes un an undo kind of log.  That would probably be the easiest way.

An alternative to those would be to report any property changes within the data object itself back to some centralized undo/redo tracking mechanism.


Actipro Software Support
Information The latest build of this product (2018.1 build 0673) was released 29 days ago, which was after the last post in this thread.

Add a Comment

Please log in to a validated account to post comments.