Windows Phone 8.1导航服务 [英] Windows Phone 8.1 Navigation Service

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

问题描述

嘿,


我是为Windows Phone 8开发的。我使用此代码在页面之间导航


NavigationService.Navigate(new Uri(" /example.xaml",UriKind.Relative));


现在我想为Windows Phone 8.1开发,我尝试使用此代码,但它仍然没有用。


感谢您的帮助。

解决方案

尝试以下代码

 Frame.Navigate(typeof(Example)); 

HTTP:// msdn.microsoft.com/en-us/library/windows/apps/xaml/hh771188.aspx


Hey,

I Developed for Windows Phone 8. There I used this Code to Navigate between Pages

NavigationService.Navigate(new Uri("/example.xaml", UriKind.Relative));

Now i wanted to Develop for Windows Phone 8.1 and I tryed to use this code but it still doesn´t worked.

Thank you for your help.

解决方案

Try following code

Frame.Navigate(typeof(Example));

http://msdn.microsoft.com/en-us/library/windows/apps/xaml/hh771188.aspx


这篇关于Windows Phone 8.1导航服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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