As we all know we have to define default navigating page in WMAppManifest
file. I've MainPage.xaml
page as default, but I want to Navigate to some other Page on application launch. I do not want to remove MainPage from WMAppManifest file.
Currently I had tried the following things
- On MainPage loaded I'm navigating to the second Page.
In App.xaml.cs I've set the following code in
CompleteInitializePhoneApplication
methodRootFrame.Source = new Uri("/Songslist.xaml", UriKind.RelativeOrAbsolute);
Both are working but the app hangs for seconds during navigating which gives bad looks. I can't upload the sceenshot because it happens for seconds. How could I achieve this thing? When I do with the following code I got NullReference Exception because RootVisual=null
(Application.Current.RootVisual as PhoneApplicationFrame).Navigate(new Uri("/Songslist.xaml", UriKind.RelativeOrAbsolute));