0

I am have MouseMove on multiple ListBoxes to check if user starts dragging between them and initiate it only if distance is greater than certain number.

Will it impact the performance as I add more features and animations? Is it possible to have it send messages less frequently (without timer improvisations) or maybe bind event on MouseDown (but how to make sure I remove the event since MouseLeave is not reliable, MouseUp can be somewhere else, and also don't create multiple events)?

Daniel
  • 1,064
  • 2
  • 13
  • 30

1 Answers1

0

Use MouseDown to intitiate "listening out" for your drag-like manipulation but you must capture the mouse so that the MouseUp event is caught if the button is released when no longer over the control.

See What does it mean to "Capture the mouse" in WPF?

Community
  • 1
  • 1
Luke Puplett
  • 42,091
  • 47
  • 181
  • 266