Get the mouse position during drag and drop

J W picture J W · May 27, 2009 · Viewed 12.3k times · Source

Does anyone know how to get the correct mouse position during a drag-and-drop operation in WPF? I've used Mouse.GetPosition() but the returned value is incorrect.

Answer

J W picture J W · May 27, 2009

Never mind, I've found a solution. Using DragEventArgs.GetPosition() returns the correct position.