Unfortunately, In our design the port information is actually defined in the XAML, so we need the Link object to access the port information.
During undo/redo operations “Transaction” event is not raised. Only the StartingUndo/StaringRedo and FinishedUndo/FinishedRedo events are raised. These event contain a list of edits, but they don’t actually represent the operations done as part of undo/redo but contain the actual operation.
Eg. When i add a node to the diagram, as we know the AddedNode event is raised.
When I perform undo operation, both StartingUndo and FinsihedUndo’s edits contain AddedNode, whereas the operation to be performed is RemovedNode(as it an undo operation).
Is there any way to access the Transaction details during the Undo/Redo operation?