0

在Windows Phone 7中的web浏览器不显示网页。它没有显示任何错误并显示空白页面。我正在尝试打开google.com页面。代码如下:为什么webBrowser不能在windows phone 7模拟器中显示网页?

私人无效的button1_Click(对象发件人,RoutedEventArgs E) { WebBrowser1.Navigate时(新URI( “http://www.google.com”,UriKind.RelativeOrAbsolute)); }

// XAML代码

<Grid x:Name="ContentPanel" Grid.Row="1" Margin="12,0,12,164"> 
      <phone:WebBrowser HorizontalAlignment="Left" Source="{Binding Path=WebAddress}" Margin="9,0,0,0" Name="webBrowser1" VerticalAlignment="Top" Height="576" Width="441" IsScriptEnabled="True"/> 
     </Grid> 
     <Button Content="Button" Grid.Row="1" Height="72" HorizontalAlignment="Left" Margin="158,591,0,0" Name="button1" VerticalAlignment="Top" Width="160" Click="button1_Click" /> 
    </Grid> 

回答

0

它与显示驱动程序的问题。我在系统中使用的驱动程序是WDDM 1.0。

相关问题