在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 并显示该文件。