在WPF中绘制自定义对象。 [英] Drawing custom objects in WPF.

查看:105
本文介绍了在WPF中绘制自定义对象。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,



你知道一篇描述如何在WPF中绘制自定义对象的文章(例如圆圈,箭头ecc),其中包括修改的可能性这些物体的比例(例如箭头的宽度,圆圈的半径)。



谢谢,



Alessio。

Hi all,

Do you know an article that describe how to drawing custom objects in WPF(e.g. circles, arrow ecc), that includes the possibility of modify proporties of these objects(e.g. width of arrows, radius of circles ecc.).

Thank you,

Alessio.

推荐答案

为什么文章?这是解决原始文档的最佳方法。它足够好了:

http://msdn.microsoft.com /en-us/library/ms748373.aspx [ ^ ]。



您应该决定是否要在自定义渲染级别上进行图形处理,或者您可以在更高级别的 Canvas

http://msdn.microsoft.com/en-us/library/system.windows.controls.canvas.aspx [ ^ ]。



基本上,从这里开始,你会发现你需要的一切。



-SA
Why articles? It''s the best to address to original documentation. It''s good enough:
http://msdn.microsoft.com/en-us/library/ms748373.aspx[^].

You should decide if you want to do graphics on the custom rendering level, or you can work on a higher level of Canvas:
http://msdn.microsoft.com/en-us/library/system.windows.controls.canvas.aspx[^].

Basically, starting from here, you will find all you need.

—SA


你可以通过简单的Google搜索轻松快速地找到大量参考资料。以下是一些可以帮助您入门的链接。



http://stackoverflow.com/questions/1426669/wpf-custom-shapes [ ^ ]



http://stackoverflow.com/questions/8403482/create-custom-shapes-in-wpfpreferably-using-microsoft-expression-blend-4 [ ^ ]



http://stackoverflow.com/questions/11165469/creating-2d-wpf-custom-shapes-that-are-animateable [ ^ ]



来自CodeProject的一对夫妇:

WPF箭头和自定义形状 [ ^ ]



形状和自定义绘图 [ ^ ]
You can easily and quickly find lots of references for this via a simple Google search. Here are a few links to get you started.

http://stackoverflow.com/questions/1426669/wpf-custom-shapes[^]

http://stackoverflow.com/questions/8403482/create-custom-shapes-in-wpfpreferably-using-microsoft-expression-blend-4[^]

http://stackoverflow.com/questions/11165469/creating-2d-wpf-custom-shapes-that-are-animateable[^]

And a couple from CodeProject:
WPF Arrow and Custom Shapes[^]

Shapes and Custom Drawing in WPF/Silverlight [^]


这篇关于在WPF中绘制自定义对象。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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