的Windows Phone 8.1 - 页面导航 [英] Windows Phone 8.1 - Page Navigation
问题描述
从即将的Windows Phone 8
我从来没有想过会有很多做给的Windows Phone 8.1
code。基本上,我只是想知道如何做页面导航,就像你会怎么做它<code>的Windows Phone 8 。要做到这一点,你应该加上:
NavigationService.Navigate(新的URI(/ SecondPage.xaml,UriKind.Relative));
但code不为合作的Windows Phone 8.1
。
有人可以帮助我?如果可能的话提供所有新的的Windows Phone 8.1
方法的任何链接或文件。
在的Windows Phone 8.1,页面导航的方法是这样的:
Frame.Navigate(typeof运算(SecondPage),参数);
这意味着你将navagate为SecondPage,并通过参数(基于对象的类)。
如果您不需要传递任何参数,您可以使用此:
Frame.Navigate(typeof运算(SecondPage));
您可以找到这个MSDN链接 文档 p> Coming from but that code doesn't work for Can someone please help me with this? If possible provide any links or documentation on all the new In Windows Phone 8.1, Page Navigation method is like this: It means that you will navagate to 'SecondPage', and pass 'param' (a class based on object). If you needn't to pass any parameters, You can use this: You can find the documentation for this MSDN link 这篇关于的Windows Phone 8.1 - 页面导航的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!Windows Phone 8
I have never thought there will be a lot of changes done to the Windows Phone 8.1
code. Basically I'm just wondering how to do page navigation just like how you would do it on Windows Phone 8
. To do that you should add:NavigationService.Navigate(new Uri("/SecondPage.xaml", UriKind.Relative));
Windows Phone 8.1
. Windows Phone 8.1
methods.Frame.Navigate(typeof(SecondPage), param);
Frame.Navigate(typeof(SecondPage));