如何防止全景图从 Windows Phone 7 应用程序中的最后一项滚动到第一项 [英] How to prevent Panorama scrolling from last item to first item in a Windows Phone 7 app

查看:21
本文介绍了如何防止全景图从 Windows Phone 7 应用程序中的最后一项滚动到第一项的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以防止,当用户查看最后一个 PanoramaItem 时,他可以进一步向右滚动?- 移回第一个 PanoramaItem.(反之亦然,防止通过向左滑动从第一个滚动到最后一个)

Can it be prevented that, when the user is viewing the last PanoramaItem, that he can scroll further to the right? - which moves back to the the first PanoramaItem. (and, vice-versa, preventing to scroll from the first to the last by swiping to the left)

我问这个是因为在我的应用程序中,我有一个只有 2 个 PanoramaItems 的全景页面.用户可以通过向左或向右滑动来从一个滚动到另一个.我想在滚动超出最后一个 PanoramaItem 时阻止其他动画.可能吗?

I'm asking this because in my app I have a panorama-page with only 2 PanoramaItems. The user can scroll from one to the other by swiping to the left or to the right. I want to prevent that other animation when scrolling beyond the last PanoramaItem. Is it possible?

推荐答案

在我看来,您可能根本不应该使用 Panorama.看看您关于使物品变小的另一个问题,您似乎想将 Panorama 推到其设计目的之外.

Sounds to me that you perhaps you shouldn't be using the Panorama at all. Looking at your other question about making the items smaller, it seems you want to push the Panorama beyond its designed purpose.

也许您需要的是 ScrollViewer 和水平方向的 StackPanel 中的两个项目(使用网格布局).

Perhaps you need is ScrollViewer with your two items (laid out using Grids) in a StackPanel with a horizontal orientation.

这篇关于如何防止全景图从 Windows Phone 7 应用程序中的最后一项滚动到第一项的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆