1

I want to show context menu on ListView element when Drag&Drop operation finishes by dropping some data on it. The proplem is that it seems Drag&Drop to prevent PreviewMouseUp event firing somehow. Is there some workarounds to show ContextMenu on drop?

Sergey
  • 161
  • 9

1 Answers1

1

This is entirely expected, the mouse events are re-routed to the drag+drop logic. They now generate the D+D events instead. Roughly, MouseEnter now generates DragEnter, MouseMove fires DragOver, MouseUp triggers Drop.

The logical workaround is to show the ContextMenu in your Drop event handler.

Hans Passant
  • 922,412
  • 146
  • 1,693
  • 2,536