如何以编程方式切换到不同的 PanoramaItem?
注意:我已经看到这个,但它没有不回答问题。
我的应用程序有首次运行体验,它向用户提供了一些不同的选项来解释应用程序的功能。如果他们选择其中一个选项,我想向他们展示处理该特定功能的 PanoramaItem
。它恰好是项目#3。
因此,Panorama.SelectedItem
是只读的。还有其他方法吗?如果没有,我可以通过模拟一些手势输入来伪造它吗?一个人会怎样做呢?
Note: I already saw this and it doesn't answer the question.
I have a first run experience for my app that presents the user with a few different options explaining what the app does. If they select one of those options, I want to show them the PanoramaItem
that deals with that particular functionality. It happens to be item #3.
So, Panorama.SelectedItem
is read-only. Is there some other way to do it? If not, could I fake it by, say, simulating some gesture input? How would one do that?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
由于
SelectedItem
和SelectedIndex
当前处于private set
规则下,因此您实际上无法通过应用程序修改它们。但是,您可以更改DefaultItem
属性:这会导致项目稍微重新排列,因为您将项目设置为列表中的第一个项目,但除此之外,这是一种可接受的方式这样做,因为它实际上会将项目带到用户面前。
Since
SelectedItem
andSelectedIndex
are currently under theprivate set
rule, indeed you cannot modify them through the application. However, you can change theDefaultItem
property:It will cause items to be a bit re-arranged since you are setting an item to be the first in the list, but other than that it is an acceptable way to do this, since it will actually bring the item in front of the user.
您可以更改默认项。
这是我为不同目的制作的一个示例,但它具有此功能。 http://dl.dropbox.com/u/129101/Panorama_querystring.zip
You can change the DefaultItem.
Here's an example I made for a different purpose but it has this functionality. http://dl.dropbox.com/u/129101/Panorama_querystring.zip