在对象C#图形中对线和圆进行分组 [英] Grouping line and Circle in object c# drawing

查看:39
本文介绍了在对象C#图形中对线和圆进行分组的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,

我在WPF的画布控件上有一个圆圈和一条线

Hello,

I have a circle and a line on a canvas control of WPF

<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???

推荐答案

没有简短的答案,所以我什至不会尝试.但是,我将为您指出这篇文章
WPF图表设计器:第1部分 [
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.


这篇关于在对象C#图形中对线和圆进行分组的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆