如何恢复WP7中已经打开的页面?
如何恢复WP7中已经打开的页面?
例如:在 P1 中有两个按钮 A 和 B,当我单击 A 时,它会将我带到 P2,当我返回 P1 并再次单击 A 时,它不起作用。但是当我点击B后,它会进入P3并返回P1并点击A,它可以工作,但按钮B却不能。
据我所知,该页面的一个实例已经在后台运行。但不知道如何在再次单击按钮时恢复该页面。
谁能帮忙解决这里应该做什么?
How to resume a page which is already opened in WP7?
For example : In P1 there are two buttons A and B,when i click A it takes me to P2 and when i come back to P1 and again click A it not working. But after i click B which takes to P3 and come back to P1 and click A its working,but button B is not.
I understand that an instance of that page is already running in the background. But don't know how to resume that page while clicking the button again.
Can anyone help with what should be done here?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
当您通过
SelectionChanged
导航时,需要重置SelectedIndex
:编辑:
SelectedIndex
在LongListSelector
中不可用。请改用SelectedItem
。When you are navigating via
SelectionChanged
, you need to reset theSelectedIndex
:Edit:
SelectedIndex
is not available inLongListSelector
. UseSelectedItem
instead.则用于导航到 P2。
假定 P2.xaml 是您的 P2 页面,
Use
to navigate to P2 given that P2.xaml is your P2 page.