当前位置: 代码迷 >> Windows Mobile >> 为何这段代码不能打开page1.xaml页面呢
  详细解决方案

为何这段代码不能打开page1.xaml页面呢

热度:51   发布时间:2016-04-25 07:15:52.0
为什么这段代码不能打开page1.xaml页面呢?
  <HyperlinkButton Width="142" 
                             Height="47"
                             x:Name="HomeLink"
                             Content="Page1页面"
                             Foreground="Yellow"
                             FontWeight="Bold"
                             HorizontalAlignment="Left"
                             Margin="6,127,0,0"
                             VerticalAlignment="Top"
                             NavigateUri="/Page1.xaml"/>
弱弱的问一句 Page1.xaml页面是什么啊?!!长什么样的?
------解决方案--------------------
路径对吗?
Page1.xaml是在根目录下吗?
------解决方案--------------------
首先,要指定是相对路径;然后,确保 Page1.xaml 存在。
------解决方案--------------------
Page1.xaml 是 WP 开发的一个基本东东,建议 LZ 看看 WP 编程的基础知识。