You can do this by setting the dummy page as the main page of your project. You can change the main page by editing the WMAppManifest.xml file of your project:
<DefaultTask Name="_default" NavigationPage="DummyPage.xaml" />
Now identify all the navigation files directed to the dummy page, and redirect to any page you want.
To do this, subscribe to the "Navigation" event in the App.xaml.cs file at the end of the constructor:
this.RootFrame.Navigating += this.RootFrame_Navigating;
In the event handler, determine whether the navigation is directed to the dummy page, cancel the navigation and redirect to the desired page:
void RootFrame_Navigating(object sender, NavigatingCancelEventArgs e) { if (e.Uri.OriginalString == "/DummyPage.xaml") { e.Cancel = true; var navigationService = (NavigationService)sender;
Edit
Actually, itβs even easier there. at the end of the application constructor, just install UriMapper with the Uri replacement you want:
var mapper = new UriMapper(); mapper.UriMappings.Add(new UriMapping { Uri = new Uri("/DummyPage.xaml", UriKind.Relative), MappedUri = new Uri("/Page2.xaml", UriKind.Relative) }); this.RootFrame.UriMapper = mapper;
source share