Silverlight图形控件
我需要在我的 Silverlight 应用程序中包含一个图形编辑器(用户应该能够将列表中的元素放入图形中并将它们与其他元素链接起来,就像组织结构图一样),但不知道如何执行此操作。 SDK 或 Toolkit 中的控件似乎都不是针对这种情况而设计的,并且使用各种第三方控件之一也不是一种选择。 有人可以建议我如何继续吗?
I need to include a graph editor (users should be able to place elements from a list in the graph and link them with other ones, much like an organizational chart) in my Silverlight application but have no idea how to do so. None of the controls in the SDK or the Toolkit seem to be made for such a scenario and using one of the various third party controls is not an option.
Could someone please suggest me how to proceed?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您所描述的似乎是一个中等复杂的图形 Silverlight 应用程序。除了使用第三方控件(尽管我不知道支持您提到的“链接”在一起)或自己实现整个过程之外,我真的没有看到其他选择。
要自己做,我建议使用自定义控件来创建“节点”并处理 mousedown、mosemove 和 mousedown。 mouserelease 事件来绘制并实现它们之间的连接。话虽如此,根据复杂性以及您使用 Silverlight 的经验,我会将此任务安排在一个人周到两个人月的时间内完成。
What you're describing seems to be a moderately complex graphical Silverlight application. I really don't see other options than either using 3rd party controls (though I'm not aware of ones that support "linking" together as you've mentioned) or implementing the whole thing yourself.
To do it yourself I'd suggest using custom controls to create the "nodes" and handle mousedown, mosemove & mouserelease events to draw and implement connections between them. Having said this I'd put this task anywhere from a man week to two man months to complete based on complexity and you're experience with Silverlight.