从一个页面导航到另一个页面 [英] navigation a page from one to another

查看:89
本文介绍了从一个页面导航到另一个页面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,


我正在开发Windows7移动应用程序,因此我可以从一页导航到另一页.我在下面的代码中编写了

hi all,


i am developing a windows7 mobile application so in that i am navigation from one page to another page.I written below code

button1_click

{
 NavigationService.Navigate(new UriKind("/page1.xaml",UriKind.RelativeOrAbsolute));
}



但这没用...请任何人给我建议.

提前谢谢

nareshraju u.



but it''s not working...please any body give to me suggestion.

thanks''s in advance

nareshraju u.

推荐答案

请参考以下主题:
从一页导航到另一页 [ ^ ]
在这里,您将获得更多详细信息:
在页面之间传递数据 [此处查看一下 [
Please refer following threads:
Navigate from one page to another[^]
Here you''ll get some more details:
Passing data from page to page[^]
And finally have a look here[^]


don "不要使用
"new UriKind("/page1.xaml",UriKind.RelativeOrAbsolute)"


像这样使用它:


use it like this:

new Uri("/page1.xaml",UriKind.RelativeOrAbsolute)


进行以下更改:

Make the below change:

button1_click

{
 NavigationService.Navigate(new Uri("/page1.xaml",UriKind.RelativeOrAbsolute));
}



看到此button1_Click位于Page控件中,而不是嵌入在UserControl或Windows中



See that the this button1_Click is in Page control, not embedded in UserControl or Windows


这篇关于从一个页面导航到另一个页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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