[Tips] [Windows Phone 7 (Beta)] 如何設定應用程式起始頁(RootFrame)

 

過去在開發Silverlight應用程式時,如果要變更應用程式的起始頁,都會從app.xaml中的Application_Startup去做變動

        private void Application_Startup(object sender, StartupEventArgs e)
        {
            this.RootVisual = new MainPage();
        }

不過在Windows phone 7 beta中,起始頁的設定已經變到了WMAppManifest.xml中的

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

B+ StudioCopyright © 2010 B+ Studio.

posted on 2010-08-30 11:50  B+  阅读(240)  评论(0编辑  收藏  举报

导航