Windows Phone 8中的navigation.goback()有问题吗? [英] problem with navigation.goback() in windows phone 8?

查看:69
本文介绍了Windows Phone 8中的navigation.goback()有问题吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

例如我有2页page1,page2

for example i have 2 pages page1,page2

首先我要从page1导航到page2.

first i am navigating from page1 to page2..

然后,当我单击page2中的一个按钮时,我正在使用naviagtion.goback()方法.

then i am using naviagtion.goback() method when i click on one button in page2..

 我正在第1页的onnavigatedto()上显示一些内容.

 i am displaying something on onnavigatedto() of page1.

但是它显示在page2本身中,然后将其重定向到page1 ...

but it is displaying in page2 itself then it is redirecting to page1...

如果我通过指定uri使用导航方法,那么它将正确显示..什么问题?

if i use navigate method by specifying uri then it is displaying correctly..what is the problem?

推荐答案

向我们展示点击处理程序的代码,以及两个页面的OnNavigatedTo.

Show us the code of your click handler, and the OnNavigatedTo of both pages.

如果您通过指定uri进行导航,那么它将向前导航到页面的新实例.

If you navigate by specifying uri, then it navigates forward to a new instance of the page.


这篇关于Windows Phone 8中的navigation.goback()有问题吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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