在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>
我不認爲這是綁定的問題。 即使這不起作用 –