【问题标题】:How can I rename of the MainPage.xaml and MainPage.cs in windows phone 7如何在 windows phone 7 中重命名 MainPage.xaml 和 MainPage.cs
【发布时间】:2011-01-13 09:18:25
【问题描述】:

我是 windows phone 7 的新手。 当我将一个新的 windows phone 7 项目添加到 Visual Studio 中时,它会默认创建 MainPage.xaml 和 MainPage.cs。之后,我想将这些文件重命名为 HomePage.xaml 和 HomePage.cs,所以我选择了这个文件(在解决方案资源管理器中)然后按 F2 并输入新名称。改名没问题。但是当我按 F5 运行我的项目时,Visual Studio 停止在代码行,如下图所示。 如果我按 F10 或 F5 继续,我的应用程序将关闭。

如果你知道这个问题,请告诉我。

谢谢。 平阮

【问题讨论】:

    标签: windows-phone-7 rename


    【解决方案1】:

    您可以在 Properties -> WMAppManifest.xml 中更改您的主页

      <DefaultTask  Name ="_default" NavigationPage="SomeOtherPage.xaml"/>
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-12-04
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-10-21
      • 2011-07-30
      相关资源
      最近更新 更多