I’m using GoXam for WPF 1.3.5 and I’ve noticed that my UndoManager is cleared after the first node is added. I’m starting with an empty diagram and creating it using drag and drop. However, my drag source is not a GoXam control so that logic is fairly custom and is based around the Diagram.Drop event. So what happens is:
- I create a new diagram with an empty model. The value of Diagram.Panel.DiagramBounds is {0,0,0,0}.
- The Diagram.InitialLayoutCompleted event is raised and the UndoManager is cleared.
- I add a node which results in commiting a custom transaction that contains a call to Model.AddNode.
- The Diagram.InitialLayoutCompleted is raised again and the UndoManager (which now has one compound edit) is cleared again.
What am I doing wrong here?