private void Application_Launching(object sender, LaunchingEventArgs e) { Uri uri; // Read the user settings var views = IsolatedStorageProvider.LoadViewSettings(); // Month view if (views.ShowMonthView) { uri = new Uri("/MonthViewPage.xaml", UriKind.Relative); } else { // Week view if (views.ShowFiveDaysWeek) { uri = new Uri("/FiveDaysPage.xaml", UriKind.Relative); } else { uri = new Uri("/SevenDaysPage.xaml", UriKind.Relative); } } // Set the start page ((App)Application.Current).RootFrame.Navigate(uri); }
<Tasks> <!--This is set in code (App.xaml.cs)--> <DefaultTask Name="_default" NavigationPage="" />