I created a very simple test application which consists of a Toolbox and a Workflow Designer. In the toolbox, I only added a "Terminate" activity:
_workflowDesigner = new WorkflowDesigner();
_toolbox = new ToolboxControl();
ToolboxCategory undoTestCategory= new ToolboxCategory("Undo Test");
ToolboxItemWrapper terminateTool = new ToolboxItemWrapper(typeof(System.Activities.Statements.TerminateWorkflow), "Terminate");
When I drag/drop the "Terminate" to the middle of the designer, I can press Ctrl-Z once to undo it (i.e. remove it from the designer). However, if I drop it at the edge of the designer which forces a resize/expansion of the designer, it takes 4 Ctrl-Zs
to undo it. Is there a way around this? Also, is there an easy way in the debugger to see the undo stack?
View Complete Post