Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
100
DragAndDrop MousePosition Problem
posted

I wrote some code to accomplish a simple Drag and Drop between cells in the XamDataGrid. Unfortunately I'm only receiving the correct Mouseposition while the application is maximized.

I'm aware of the possibility of AdornerLayer et cetera but I wondered where this strange habit is coming from.

I've attached a solution...

 

XamDataGridDropDragTest.zip
Parents
  • 138253
    Verified Answer
    Offline posted

    Hello,

    Thank you for your post. I have been looking into it and the sample you have provided and I modified it, so now it works as you want. Basically I get the upper left coordinates of the Window and add the X and Y to the offset of the Popup, because the coordinates you calculated are based on the upper left point of the screen, not the window. Please let me know if this helps you or you need further assistance on this matter.

    Looking forward for your reply.

    XamDataGridDropDragTest.zip
  • 100
    posted in reply to Stefan

    Thx, worked!

Reply Children
No Data