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

I have a circle and a line on a canvas control of WPF
XML
<Canvas>
        <Line X1="10" X2="50" Y1="10" Y2="100" Fill="#FF190000" Stroke="#FF001919" StrokeThickness="4"></Line>
        <Ellipse Width="72" Height="109"></Ellipse>
    </Canvas>


Now I want the user to group this line and ellipse in one object and save it as a new object
How???
Posted

1 solution

There are no short answer, so I'll not even try. I will however point you to this article
WPF Diagram Designer: Part 1[^]
it's the first in a series of 4, I read this and played around with the code when I started learning WPF, great article. It will show you how you can implement grouping and I'm guessing it also can show you a lot of other features you wanna implement.
 
Share this answer
 

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