1

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?

the code i used is:

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

  • http://stackoverflow.com/questions/16506731/how-to-redirect-to-a-page-which-exists-in-specif-project-to-another-page-in-othe?answertab=votes#tab-top – Kumar Aug 18 '14 at 06:57

2 Answers2

1

Try this:

NavigationService.Navigate(new Uri("/TargetProjectName;/TargetPage.xaml", UriKind.Relative));
Ajay
  • 6,418
  • 18
  • 79
  • 130
0

Since the file is in a different assembly, you need to specify the name of that assembly.
Suppose your other project is called Assembly2. Then you navigate URI would be:

App.RootFrame.Navigate(new Uri("/Assembly2;component/MainPage.xaml", UriKind.Relative));
Abhishek
  • 1,349
  • 8
  • 17