以编程方式滑动到下一个全景项目 [英] Programmatically slide to next Panorama item

查看:29
本文介绍了以编程方式滑动到下一个全景项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以以编程方式从一个全景页面/项目移动到下一个并获得与用手指滑动时相同的动画滑动效果?

Is it possible to programmatically move from one panorama page/item to the next and get the same kind of animated sliding effect you get when sliding with a finger?

我可以使用 PanoramaControl.DefaultItem 属性移动到预期的项目/页面,但您不会获得动画滑动效果.这里有什么想法吗?

I can use the PanoramaControl.DefaultItem property to move to the expected item/page, but you won't get the animated sliding effect. Any ideas here?

推荐答案

无法以编程方式更改全景控件的选定索引.正如您提到的,设置索引的唯一方法是使用 DefaultItem 属性,该属性仅在导航到包含全景图的页面时才有用.

it is not programatically possible to change the selected index of a panorama control. As you mention the only way of setting the index is using the DefaultItem property which is only useful when navigationg to the page which contains the panorama.

这里是另一篇讨论它的帖子.

Here is another post that discusses it.

这篇关于以编程方式滑动到下一个全景项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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