Click here to Skip to main content
15,886,055 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
Hello mates,

I have a huge problem and hope you are kind enough to help me out :)

So, I need a control which allows Drag&Drop custom controls, zooming and panning (like extending a canvas without limitations)

I´ve looked around and found this nice article:
A WPF Custom Control for Zooming and Panning[^]

So the output is quite what I need except the drag&drop part...how I can make it possible? I have no glue at all :(

It also would be nice when the drag&dropped items are still clickable, like a right click opens a custom option menu, but thats not a must have at the moment...

Any ideas are very welcome! thank you a lot :)
cheers

What I have tried:

I´ve tried some panning and zooming controls, but none of them allow drag&drop or are just to complex to get it working with my tool (http://www.codeproject.com/Articles/22952/WPF-Diagram-Designer-Part)
Posted
Comments
Sergey Alexandrovich Kryukov 8-Feb-16 10:33am    
Why having a section "what I have tried" without telling us what have you tried.
We got a number "questions" with the same structure and attitude, and I wonder: is it the same person under different accounts? The common characteristics are: no effort, having not clue on what to do, something creating a lot of doubt if you should do this work at all...
Such questions are not answerable, it the answers cannot be useful to anyone. Just one advice: get to work.
—SA
DonWikki 9-Feb-16 3:12am    
Well the other user helped me a lot with his link without complaining. He was also able to understand my question...

btw: I was trying at least 9 hours to get the two controls (see the links) get to work in my project, but it just didn´t worked....

1 solution

Take a look at this[^].

It shows how to do DragDrop and Zoom.
 
Share this answer
 
Comments
DonWikki 9-Feb-16 3:14am    
Thank you so much, THIS is what I was looking for! 5 Stars for you <3
Kevin Marois 9-Feb-16 11:34am    
No Problem. Glad I could help.

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