页面导航WP8.1 [英] Page navigation WP8.1

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

问题描述

我做了一个应用程序来WP8和我一样使用 NavigationService.Navigate页面导航(新的URI(...))和运作良好。结果
但是现在我试图建立一个WP8.1应用程序,并无法弄清楚是怎么回事,结果
我收到以下错误'的NavigationService'这个名字呢在目前情况下不存在。结果
我有两页,我想他们之间进行导航。结果
我该怎么办?结果$ b ?$ b是什么改变了。

I made an app to WP8 and I used the page navigation like NavigationService.Navigate(new Uri(...)) and worked well.
But now I'm trying to develop a WP8.1 app and can't figure out how is it going.
I get the following error The name 'NavigationService' does not exist in the current context.
I have two pages and I want to navigate between them.
How can I do?
What changed?

推荐答案

有关通用应用程序(Windows运行时),你需要使用的Frame.Navigate(...) 过载,与你导航到该页面的类型。

For Universal Apps (Windows Runtime), you need to use the Frame.Navigate(...) overload, with the type of the page you're navigating to.

要定位到MainPage.xaml中,你可以使用 Frame.Navigate(typeof运算(的MainPage));

To navigate to MainPage.xaml, you can use Frame.Navigate(typeof(MainPage));

我会建议你阅读的快速入门:页面之间导航(Windows运行时应用程序使用C#/ VB / C ++和XAML)(MSDN)

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

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