如何更改 WP7 Silverlight 应用程序的启动页面? [英] How do I change the startup page on a WP7 Silverlight app?
本文介绍了如何更改 WP7 Silverlight 应用程序的启动页面?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我向我的 WP7 应用程序添加了一个新的 XAML 页面,我需要该应用程序在这个新页面上启动.我怎么做 ?
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 ?
我无法在 App.xaml 或 App.xaml.cs 中的任何位置找到引用的 MainPage(即当前/默认起始页).
I cannot find MainPage (which is the current / default start page) referenced anywhere in App.xaml or App.xaml.cs.
推荐答案
在 WMAppManifest.xml 中,您将找到以下内容.
In WMAppManifest.xml you'll find the following.
<Tasks>
<DefaultTask Name="_default" NavigationPage="MainPage.xaml" />
</Tasks>
酌情更改.
这篇关于如何更改 WP7 Silverlight 应用程序的启动页面?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文