Universalapp Start Page Setup

Source: Internet
Author: User

In a new Universalapp, I added a page under the shared project, The new page name is Initpage.xaml, and now I want to use Initpage.xaml as the start page, but the settings for setting the startup page are not found in the configuration file, the following is the solution I found.

Open App.xaml.cs

This code can be found in the App.xaml.cs file.

The statement identified by the Red Line can be known, the Red line is identified by the statement is the app loading the first page into the Start page, the default is MainPage, Navigate to MainPage.xaml, and now I want to make Initpage.xaml as the boot interface, so I should replace "MainPage" with the corresponding class of Initpage.xaml page.

Note: the page name corresponding to the general new page is the corresponding class, but if you change the name of the page, the corresponding class will not change, if you are not sure of the corresponding class, you can open the code page is Xaml.cs file view.

Opens the InitPage.xaml.cs file and sees the following

The red circle is the class name corresponding to the page, so replace the "MainPage" in the App.xaml.cs file with "Initpage" to implement the Initpage.xaml page as the startup page.

Universalapp Start Page Setup

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.