缩放 Silverlight Toolkit 图表?
我需要在我使用的 Silverlight 图表上启用缩放功能 - 目前这是 Silverlight Toolkit。据我所知,SL Toolkit 图表不支持缩放,但我正在考虑实现此功能。到目前为止,我还没有取得多大进展:将 ScaleTransforms 应用于 Series 元素并不能按预期工作。
谁能给我提供在 Silverlight Toolkit 中实现缩放的示例代码?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
我之前曾研究过在 Silverlight Toolkit 图表上实现缩放,但由于(可能)以下原因而失败:
几个小时后,我放弃了向 SL 工具包图表添加这种支持,而是寻找其他支持缩放并具有不错的 API 来处理它的组件。这些是我找到的组件(尽管我确信还有更多):
总而言之,我认为使用已经实现缩放的组件的最简单方法 - 根据我的经验,需要大量投资才能向 Silverlight Toolkit 图表添加适当的缩放和平移。
I've previously looked into implementing zooming on the Silverlight Toolkit charts, however failed because of (probably) the following reasons:
After a few hours I gave up on adding this kind of support to the SL toolkit charts and instead looked for other components that support zooming and have a decent API to deal with it. These are the components I've found (though I'm sure there's more):
Summing it up, I think the easiest way for you to go it with a component that already has zooming implemented - from my experience it would take a lot of investment to add proper zooming + panning to Silverlight Toolkit charts.
您应该查看 user610173 的博客文章。具体来说,请在此处下载完整的示例代码: http://slchartzoomandpan.codeplex.com/SourceControl/list/变更集 非常有帮助!
You should take a look at user610173's blog post. Specifically, download the full example code here: http://slchartzoomandpan.codeplex.com/SourceControl/list/changesets Very helpful!
添加关于 Telerik 的 Gergely Orozy 评论:
您可以使用以下 XAML 轻松添加 Zoom 功能。
您可以点击此处查看演示,源代码也可以在该链接上找到相同的选项卡。
Adding to Gergely Orozy comment about Telerik:
You can easily add the Zoom functionality with the following XAML.
You can check out a demo by clicking here and the source code is also available on that same tab.