Domanda

I am creating an windows phone 8 app.In my app I have couple of pages and I want to navigate between pages.I create 8 page then i just try to navigate one page to another using this code

 NavigationService.Navigate(new Uri("/tespih3;content/tespih.xaml", UriKind.Relative));

from microsoft web page but I get error says: app.rootframe_navigation failed.

I also try to do this with navigateuri hyperlinkbutton properties but same error(it gets in debugger and says A navigation has failed; break into the debugger) again.

What may cause this problem ?

È stato utile?

Soluzione

Navigating to a page in the same assembly:

NavigationService.Navigate(new Uri("/Folder(s)/TargetPage.xaml", UriKind.relative));

Navigating to a page in another assembly:

NavigationService.Navigate(new Uri("/AssemblyName;component/Folder(s)/TargetPage.xaml", UriKind.Relative));
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top