在wpf中添加箭头到路径,我有不同的路径,u van认为它是与椭圆弧相连的节点网络 [英] add arrows to path in wpf, i have various path in different, u van consider it as an network of nodes connected with elliptical arcs

查看:54
本文介绍了在wpf中添加箭头到路径,我有不同的路径,u van认为它是与椭圆弧相连的节点网络的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

任何人都知道如何在wpf中的椭圆弧与csharp,弧或路径之间的iadd箭头处于不同的dirrection.functioning:first:通过鼠标clicle椭圆在画布上绘制。现在要将它们与路径链接只需点击第一个椭圆,然后在另一个上创建一个路径,现在我想向this.how添加一个箭头

any body know how can iadd arrows in between the elliptical arc in wpf with csharp,arcs or path are in diffrent dirrection.functioning: first:by mouse clicle ellipse are draw on canvas. now to to link them with path just click on first ellipse and then on other, a path is created , now i want to add an arrow to this.how to do that

推荐答案

最简单的方法是使用 http ://geekswithblogs.net/lbugnion/archive/2009/08/31/56-vector-arrows-in-xaml.aspx [ ^ ]但是如果你必须亲自绘制它们,那么我建议采取中点弧作为你剪裁的菱形底座的参考点,使你的箭头尖三角形。如果你使用相对坐标,它会变得棘手,但是如果你只使用帆布线,那么你总是在Q4中让事情变得容易一些......希望它有所帮助。
the easiest way to do this would be to use http://geekswithblogs.net/lbugnion/archive/2009/08/31/56-vector-arrows-in-xaml.aspx[^] however if you MUST draw them yourself then I recommend taking the midpoint of the arc as your reference point for the base of the rhombus that you clip to make your triangle for the arrow tip. it gets tricky if your using relative coords, but if your using canvas cords only, then your always in Q4 which makes things a bit easier.. hope it helps.


这篇关于在wpf中添加箭头到路径,我有不同的路径,u van认为它是与椭圆弧相连的节点网络的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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