如何轻松地绘制图表在WPF? [英] How to easily draw graphs in WPF?

查看:308
本文介绍了如何轻松地绘制图表在WPF?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要绘制图表重新presenting有限状态机。我试图用图#。这很酷,但它缺少一些东西。有没有文件,这使得它使用起来非常难,我不能(从顶点边缘本身)使用其定制的WPF控件和标签的边缘,也没有实现绘制循环。在WPF中绘制图表的任何其他库Ø谏的方式?

I need to draw graphs representing finite state machines. I tried to use Graph#. It's cool, but it lacks some things. There is no documentation, which makes it very difficult to use, I cannot draw loops (edges from a vertex to itself) using its custom WPF control and labeling edges is also not implemented. Is there any other library o adviced way of drawing graphs in WPF?

功能我需要:

  • 在边缘标记
  • 循环(循环)边
  • 顶点标签
  • 在画周围的顶点单/双圈 - 顶点应重新presented无论是作为圆(或双圆圈)与标签内

任何想法?

编辑:我得到了一些命题,对此我很感激。不过,我觉得我没有做我的思想清晰。我需要这种图形:<一href="http://static.max99x.com/school/automata-editor1.png">http://static.max99x.com/school/automata-editor1.png.就建议所有的工具不适合这个也许我不知道如何将它们应用在这种情况下。

I got some propositions, for which I am grateful. However, I think I have not made my thought clear. I need this kind of graph: http://static.max99x.com/school/automata-editor1.png. All tools suggested as far are not suitable for this or maybe I don't know how to apply them in this situation.

推荐答案

的Graphviz +的 GraphViz的C#包装正是我一直在寻找。什么

Graphviz + GraphViz C# Wrapper are exactly what I was looking for.

这篇关于如何轻松地绘制图表在WPF?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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