平移/缩放用户控件的最佳实践?

发布于 2024-09-03 00:00:45 字数 441 浏览 6 评论 0原文

我们当前有一个用户控件,它显示其他用户控件的动态矩阵。由于它是动态的,视图可能会变大,需要用户向上/向下滚动和滚动。在浏览器中向左/向右查看所有内容。

我想为用户提供一种用户控件视图,并具有平移和缩放功能。放大它,就像这个 Telerik 控件的感觉一样。我们拥有 Telerik 控件,并且我尝试使用 Map 控件来实现我们的目的,但这似乎不是一个好的解决方案。

我还在滚动查看器中放置了一个画布,并且能够使其平移(使用滚动条)和滚动条。缩放(使用缩放变换)。这工作得很好,但不像 Telerik 控件那样流畅。

所以,我想知道还有什么其他方法可以做到这一点。我是否忽略了对我有用的 Silverlight 控件?任何意见将不胜感激!

We currently have a user control which displays a dynamic matrix of other user controls. Since it's dynamic, the view can become large, requiring the user to scroll up/down & left/right in the browser to view everything.

I would like to give the users one view of the user control with the ability to pan & zoom on it, much like the feel of this Telerik control. We own the Telerik controls and I've tried to use the Map control for our purpose, but it doesn't seem like that is going to be a good solution.

I have also placed a Canvas inside of a scroll viewer, and was able to make it pan (using scroll bars) & zoom (using Scale Tranform). This works pretty well, but it's not smooth like the Telerik control is.

So, I'm wondering what other ways there are to do this. Am I overlooking a Silverlight control that would work for me? Any input would be greatly appreciated!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

爱,才寂寞 2024-09-10 00:00:45

我在 CodePlex 上发现了这个,我喜欢他们的方法。我可能会将其定制为我想要的,但这是一个好的开始。注意:它没有实现“投掷”功能。

I found this on CodePlex and I like their approach. I will probably be customizing it to be exactly what I want, but it's a good start. Note: It does not implement the 'throwing' capabilities.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文