Click here to Skip to main content
15,896,269 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi all,
I have build a user control , i need drag and drop some item into this user control. But i can not detect i have drop item outside this user control?
Please give me a solution.
Thanks!
Posted
Comments
Sergey Alexandrovich Kryukov 27-Jan-15 21:34pm    
Why? What do you want to achieve with that? It is "regular" drag/drop functionality of something unusual? What have you tried so far?
—SA
Kent87 27-Jan-15 23:14pm    
Thanks for your comment. In my scenario, i have stack panel and item into stack panel. When i drag and drop item, the item will swap position. I implement 2 function Preview_Drop and Preview_DragOver. But when i move item outside stack bounds, how can i detected item is drop outside or inside stackpanel? Thanks

1 solution

Thanks for mentions. I find a solution is here.
https://onedrive.live.com/embed?cid=8B11BBBF3F0ED903&resid=8B11BBBF3F0ED903!50827&authkey=AKJr_scsSHWRgCM[^].
Using hook technical.
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900