Change Startup Page in Windows Store App

How to change the startup page in a Windows Store App using C#.
  • 2390
  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
© 2019 DotNetHeaven. All rights reserved.