Is it possible to get the mouse coordinates while in a handler for this event? It seems like Mouse.GetPosition isn't returning valid information.
1 Answer, 1 is accepted
0
Martin Ivanov
Telerik team
answered on 02 Dec 2024, 09:32 AM
Hello Zack,
The mouse position cannot be properly accessed in the DragDropManager.GiveFeedback event. Instead, you can use the DragDropManager.DragOver event and the e.GetPosition() method of the event arguments. If you insist on using the mouse position in the GiveFeedback handler, you can cache it in a field when DragOver is raised and then access the field in the GiveFeedback handler. Or alternatively, you can try the GetCursorPos win32 method.