如何在我的App中添加读/写流程图[作为工作流]要素? [英] How can I add read\write flowcharts [as workflow] featuers in my App?

查看:87
本文介绍了如何在我的App中添加读/写流程图[作为工作流]要素?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图使用现有的流程图组件(例如 Syncfusion )来使winForms \ Web应用程序能够由用户使用流程图来自定义其工作流程.

后来,我失望了,因为这些组件只能以图形方式工作,即我无法将用户绘制的流程图恢复为代码...

我将感谢您的帮助,任何建议,甚至任何可以帮助我解决此问题的组件.....

I tried to use existed flowcharts components [such as Syncfusion] to make my winForms\Web appliction able to customization it''s workflow by user using flowchart.

later, I disappointed since those components just work graphically i.e. I can''t get the flowchart that had by drawn by the user back to code...

I''ll be thankful for any help,any suggestion or even any components that help me in this problem.....

推荐答案

一个一般性建议:这是与WPF相比,在System.Windows.Form中实现该图是非常不切实际的.

使用WPF,您将不需要第三方纯图形组件.

WPF方法完全不同,因为您根本不需要渲染图形.您将对象放在Canvas上并使用它们.本质上,它是所有矢量图形.您甚至可以获取单独开发的XAML文件(出色的开源编辑器Inkscape可以导出XAML,请参见 http://en.wikipedia.org/wiki /Inkscape [ ^ ],http://inkscape.org/ [ ^ ]),然后将您的自定义内容与其他对象一起使用.您甚至可以允许用户以这种方式嵌入他们自己的XAML.缩放/平移/拖动/移动和鼠标命中测试的所有问题都已经为您解决.

关于您的主要关注点:您需要的只是设计和开发问题.您必须根据自己的需要开发流程图和其他图表技术.我不确定,但是如果您自己做,您可能会有更多机会获得所需.

—SA
One general advice: this is diagramming which is very impractical to implement in System.Windows.Form compared to WPF.

With WPF you would not need third party graphic-only components.

WPF approach is very different as you don''t need rendering of graphics at all. You put objects on the Canvas and work with them. Essentially, it''s all vector graphics. You can even take XAML files developed separately (a wonderful Open Source editor Inkscape exports XAMLs, see http://en.wikipedia.org/wiki/Inkscape[^], http://inkscape.org/[^]) and put on your custom along with other objects. You can even allow your users to embed their own XAMLs this way. All the problems of zoom/pan/drag/move and mouse hit test are already solved for you.

As to your main concern: what you need is just a matter of design and development. You have to develop a flowchart and other diagramming techniques to your requirements. I''m not sure, but you might have better chances to get what you need if you do it by yourself.

—SA


这篇关于如何在我的App中添加读/写流程图[作为工作流]要素?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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