Click here to Skip to main content
15,749,203 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:

Im trying to create a drag and drop module which can be used to build an Image.
EG: Using a triangle and rectangles to create a House...

I have created the drag and drop module but I cant place the shapes to a fixed location.

It'll be a great help if someone can give me an idea or a sample ode for this problem.
Plz help.

Thank you.
Sergey Alexandrovich Kryukov 19-May-11 13:13pm    
To create a house you mostly need rectangles... called "money". A lot!

1 solution

This article, WPF Surface Panel[^], might give you an idea how to position, rotate and scale a control using the mouse.

I think the demo application has some physics properties that wouldn't apply to a drawing app but you should be able to easily rip those out.

Hope this helps,
Share this answer
Sergey Alexandrovich Kryukov 19-May-11 13:14pm    
Looks like a good approach, my 5.
See my note about rectangles though (to the question, on top).

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