Hello everybody,
I have a RaDiagram which will be filled via MVVM.
Additionally my shapes and connections have custom properties - for the sake of convenience let's say every shape has a status property.
I customized the SettingsPane, so when entering a shape's SettingsPane I have a checkbox which changes the status property of the shape.
Checked -> shape.status = 1
Unchecked -> shape.status = 0
This is working fine.
Additionally I have a flag in my ViewModel which will be updated after the status change, so that my CanExecuteUndoCommand will set
1.
e.CanExecute =
True
2.
e.Handled =
True
Unfortunately the UndoRedoStack of the diagram tells me that there is nothing in the stack.
I guess that the UndoCommand (and of course the RedoCommand) only handles the default "Content" property of a shape.
Can you give me an example how I can extend your functionality, to the RadDiagram, that changing custom properties of a shape also fill the UndoRedoStack.
Thanks in advance,
Timon