WP 全景视图

发布于 2024-12-04 19:07:59 字数 324 浏览 5 评论 0原文

我有一个处于全景视图的 Windows Phone 7 应用程序。它有一个菜单(比方说第 0 项)和 4 个其他“页面”(称为项目)。整个全景图被视为一页,因此每个视图都称为项目。

我的问题是我如何能够滑动到第 1,2,3 和第 1 项? 4 在菜单中按下按钮时有很酷的滑动过渡?另一个问题是我如何使用 silverlight,我安装了它但它没有出现在任何地方。

我用了这个代码 panoramaControl.DefaultItem = panoramaControl.Items[1]; 但它给出了一个非常糟糕的过渡,只是出现。我尝试使用故事板,但它没有提供滑动过渡。

I have a Windows Phone 7 application that is in Panorama view. It has a menu (let's say item 0) and 4 other "pages", known as items. The entire panorama is considered one page, so each view are called items.

My question is that how am I able to slide to items 1,2,3 & 4 with the cool sliding transition when a button is pressed in the Menu ? Another question is that how am i able to use silverlight, i installed it but it doesnt appear anywhere.

I used this code
panoramaControl.DefaultItem = panoramaControl.Items[1];
but it gives a very sucky transition, of just appearing. I tried using storyboard but it doesnt give the sliding transition.

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

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

发布评论

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

评论(1

且行且努力 2024-12-11 19:07:59

代码中无法对从一个 PanoramaItem 到另一个 PanoramaItem 的过渡进行动画处理。这是因为该控件不打算以这种方式使用。 DefaultItem 属性旨在用于设置[重新]显示页面时显示的项目。

您的另一个问题“我如何使用 silverlight,我安装了它,但它没有出现在任何地方[?]”没有意义。
如果您已经使用 Panorama 控件创建了一个项目,那么您正在使用 Silverlight 项目模板。

There is no way in code to animate the transition from one PanoramaItem to another. This is because the control is not intended to be used in this way. The DefaultItem property is intended to be used to set the item shown when the page is [re]shown.

Your other question "how am i able to use silverlight, I installed it but it doesnt appear anywhere[?]" doesn't make sense.
If you've got as far as creating a project with a Panorama control then you are using the Silverlight project templates.

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