windows phone 7 中的 webBrowser 不显示网页。它没有显示任何错误并显示空白页面。我试图打开 google.com 页面。代码如下:
private void button1_Click(object sender, RoutedEventArgs e) { webBrowser1.Navigate(new Uri("http://www.google.com", UriKind.RelativeOrAbsolute)); }
//xml代码
<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>