Set Startup Page In Universal Windows App

In this article you will learn how to set startup page in Windows Universal App. When you start working on some new technology, the first thing that comes to mind is to create some pages and implement few things and test it. Setting the startup page in WUA is little different than web applications.

Getting Started

Here are the steps to get started with Windows Universal App:

  • Start Visual Studio 2015
  • Create a new project
  • Click Visual C# and Windows, then select Universal
  • Click on Blank App (Universal Windows)
  • Provide the name and location of project
  • Click OK

Now add one more xaml page in project and provide a name. In my solution my page name is MainPage1 which I will set as startup page.

Now click on App.xaml.cs code file and go to OnLaunched event and rename MainPage to your new page name.

Or you can do it like this.

You can also change it in App.xaml in the Application_Launching event by using something like the following:

App.RootFrame.Navigate(new Uri("/Startup.xaml",UriKind.Relative));

Keep in mind, you have to change 'MainPage1.xaml' to your own xaml file.

Similar Articles