重定向到同一解决方案的不同项目中的另一个页面 [英] Redirect to another page in different project of same solution

查看:24
本文介绍了重定向到同一解决方案的不同项目中的另一个页面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

因此,我制作了一个 WP8 应用程序,并将它们拆分为单独的项目,并放置了一个重定向到另一个应用程序页面的按钮,但另一个页面位于我已经添加的单独项目中.我如何对其进行编程,以便当我点击该按钮时,它会将我重定向到另一个属于不同项目但具有相同解决方案的页面?

So I made a WP8 app and I split them into separate projects, and I put a button that redirects to another app's page but the other page is on a separate project that i have already added. How do I program it so that when I tap that button, it redirects me to another page that is of a different project but the same solution?

我使用的代码是:

App.RootFrame.Navigate(new Uri("/MainPage.xaml", UriKind.RelativeOrAbsolute));

推荐答案

试试这个:

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

这篇关于重定向到同一解决方案的不同项目中的另一个页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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