`
mmdev
  • 浏览: 12945453 次
  • 性别: Icon_minigender_1
  • 来自: 大连
文章分类
社区版块
存档分类
最新评论

改变WindowsPhone7程序的启动Page

 
阅读更多

在XAML中使用应用程序定义指定起始Page(它是启动WindowsPhone7程序时自动加载的Page)。

指定方法是将StartupUri属性设置为所需的Page的 统一资源标识符 (URI)。

可以在标记中以声明方式设置StartupUri,如下面的示例所示。


<Application
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
x:Class="SDKSample.App"
StartupUri="PageWithHyperlink.xaml" />

此例中,StartupUri特性设置为标识 HomePage.xaml 的相对 pack URI。当WindowsPhone7 APP启动时,将自动导航到 HomePage.xaml 并显示该文件。

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics