How do I change the startup page on a WP7 Silverli

2020-02-17 01:50发布

问题:

I have added a new XAML page to my WP7 app and I need the application to startup on this new page. How do I do that ?

I cannot find MainPage (which is the current / default start page) referenced anywhere in App.xaml or App.xaml.cs.

回答1:

In WMAppManifest.xml you'll find the following.

<Tasks>
  <DefaultTask Name="_default" NavigationPage="MainPage.xaml" />
</Tasks>

Change as appropriate.