开发者

Controlling forward and backward navigation in a windows phone panorama application

I have 5 panorama items inside a panorama. (I will call them item1 ...item5)

(A) By default, the user will be able to navigate the items in the order:

item1 -> item2 -> item3 -> item4 -> item5 -> item1 (and cycle continues)

(B) The backward navigation would be like:

item1 -> item5 -> item4 -> item3 -> item2 -> item1

I want to block the backward and forward navigation at the first and last item respectively.

What I want is that when the user is at item1, he should not be allowed to navigate back to item5 as described in (B). Also, when the user is at item5, he should not be allowed to move directly to item1.

Essentially, I wa开发者_JAVA技巧nt to break the cycle at the ends. How do I do this?

Thanks -Abhinav-


Found the below link which gives the answer to the same question

How to prevent Panorama scrolling from last item to first item in a Windows Phone 7 app

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜