I use view.DocumentChanged to notify a form about changes in my diagram.
My problem now is, that the document changes if the mouse hovers over a node. The ports’s SkipsUndoManager property is set to true
public override bool OnMouseOver(GoInputEventArgs evt, GoView view) {
if (view != null && ! (view is WorkflowPalette)) {
foreach (GoPort p in Ports) {
p.SkipsUndoManager = true;
p.Style = GoPortStyle.Rectangle;
p.Brush = null;
p.SkipsUndoManager = false;
}
}
return false;
}