none
How to detect wrong destination in drag&drop RRS feed

  • Question

  • I made codes for drag&drop feature.

    Everything works fine except the case which mouse up where the wrong drop position.

    For example, drag starts from source's mouse_down event and ends in destinations's DragDrop event.

    However, I don't know how to detect the mouse up is done out of the destination.

    Can somebody give me some advice?

    Wednesday, December 5, 2018 9:15 PM

All replies

  • Hi Jeff0803,

    Thank you for posting here.

    For your question, you could capture the position when mouse up is done. And set a destination to compare whether the position is in or not.

    Best Regards,

    Wendy


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Thursday, December 6, 2018 6:31 AM
    Moderator