更改起始页App.Xaml.cs
:
private void Application_Launching(object sender, LaunchingEventArgs e)
{
Uri nUri = new Uri("/SecondPage.xaml", UriKind.Relative);
((App)Application.Current).RootFrame.Navigate(nUri);
}
Property\WMAppManifest.xml
在文件中设置静态启动页面
<DefaultTask Name ="_default" NavigationPage="SecondPage.xaml"/>
编辑
试试看:
private void Application_Launching(object sender, LaunchingEventArgs e)
{
Uri nUri = new Uri("/GamePage.xaml", UriKind.Relative);
RootFrame.Navigate(nUri);
}
并在Property\WMAppManifest.xml
清晰的 NavigationPage 中:
<DefaultTask Name ="_default" NavigationPage=""/>