Change Startup Page in Windows Store App

How to change the startup page in a Windows Store App using C#.
  • 2471
  1. Open App.xaml.cs file (or .vb) in Visual Studio 2012 depending on your language. 
  2. Find OnLaunched method
  3. Find the following code line:
    if (!rootFrame.Navigate(typeof(MainPage)))
  4. Replace MainPage with your page that you want to launch on startup
© 2020 DotNetHeaven. All rights reserved.