使用形状类绘制圆形,矩形? [英] Draw Circle, Rectangle using shape Class ?

查看:84
本文介绍了使用形状类绘制圆形,矩形?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想创建一个返回Circle的自定义形状,另一个返回矩形,我不想使用Ellipse和Rectangle类,因为我们不能继承它们,并且我必须添加一些属性一个圆圈和矩形文本块,以及行列表......!可以有人帮忙!

I want to create a custom shape which returns Circle, and another returns rectangle, i don''t want to use Ellipse and Rectangle class because we can''t inherit them, and i''ve to add some properties to a circle and rect like text block, and List of lines ... ! CAN SOMEONE HELP !

推荐答案

我在这里做过类似的事情:

WPF绘图画布控件 [ ^ ]



它在VB中虽然它不难翻译,并且这里有其他文章也可以使用。
I have done something of the sort here:
WPF-Drawing Canvas Control[^]

It is in VB though it shouldnt be hard to translate, and there are other articles here on the cite that could be used too.


这篇关于使用形状类绘制圆形,矩形?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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