I am trying to navigate to pages passing parameters, which I have got to work from the mainpage, but when I try and do a similar thing at a lower level I get a page not found error (the index page works, but the DetailsIndex does not)
MainPage.xaml
<navigation:Frame.UriMapper>
<uriMapper:UriMapper x:Name="myUri">
<uriMapper:UriMapping Uri="" MappedUri="/Views/Home.xaml"/>
<uriMapper:UriMapping Uri="DetailsIndex/{id}" MappedUri="/Views/DetailsIndex.xaml?id={id}"/>
<uriMapper:UriMapping Uri="Index/{id}" MappedUri="/Views/Index.xaml?id={id}"/>
<uriMapper:UriMapping Uri="/{pageName}" MappedUri="/Views/{pageName}.xaml"/>
</uriMapper:UriMapper>
MainPage.xaml.cs (this works)
this.ContentFrame.Source = new Uri("/index?id=19", UriKind.Relative);
IndexPage.xaml.cs (this gets a error -> Page not found: "DetailsIndex?id=66")
private void Button_Click(object sender, RoutedEventArgs e)
{
Button btn = sender as Button;
string id = btn.Tag.ToString();
this.NavigationService.Navigate(new Uri(string.Format("DetailsIndex?id={0}", id), UriKind.Relative));
}