PropertyGrid Undo/Redo

Grids for WPF Forum

Posted 10 months ago by Roger
Version: 18.1.0671
Avatar

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 10 months ago by Actipro Software Support - Cleveland, OH, USA
Avatar

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

The latest build of this product (v2018.1 build 0676) was released 0 days ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.