It can be replicated everytime when all components on the diagram are selected but works fine in the following scenarios
Select All and Double click on node
When double click done on link without selecting all
Popup is in the view which is controlled by a IsOpen property binded to it. Yes the popup gets the focus and to close the pop up we click on empty part of the diagram. During this time the dragging tool is getting activated and moving the selected parts to the place where we click.
We are following MVVM and most of the properties are binded and do not use any events of the pop up. I am using StaysOpen property and some triggers on IsOpen. The following is the code.
I’m guessing the problem is that the DraggingTool is being started at the time that the user clicks in the diagram to get rid of the Popup. That’s why I was asking if you set the RoutedEventArgs.Handled property in that event.
Does the problem not happen if the user carefully clicks in the diagram without moving the mouse while the mouse button is down?
What if the user right-clicks in the diagram rather than left-click?