DataGrid and MVVM with Undo/Redo
问题 I'm playing with quite simple interface with buttons and shortcuts for adding, inserting and removing rows of datagrid (underlying bound collection). There's also a need to implement undo stack. But...I have no idea how to do with internal logic of this control. By default DataGrid can remove or add new row automatically and performs many other things on user input (Esc,F2 and so on) thus implicitly changing the bound data. As commands are to be executed on the VM side undo stack is its (or