WP 全景视图
我有一个处于全景视图的 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 codepanoramaControl.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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
代码中无法对从一个 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.