Hi,
I have to implement quite specific drag’n’drop behaviour:
- Drag’n’drop takes place between two GoView controls (two instances of the same subclass of GoView placed on the same form).
- Objects are moved from source view to destination view (not copied, only document to which they belong is changed).
- Drag operation between these two GoViews have to be tracked by undo/redo mechanism.
What’s the right solution for this?
I’ve tried to solve point 3) by setting the same UndoRedoManger to views (is this solution correct?):
GoUndoManager undoManager = new GoUndoManager();
view1.Document.UndoManager = undoManager;
view2.Document.UndoManager = undoManager;
But I’m not sure if this is ok.
Thanks in advance
Lukasz