I am working on the WebBrowser control in WP7.1 Mango.
This is the sample HTML I wrote and asked the webBrowser to navigate To String.
public partial class MainPage : PhoneApplicationPage
{
// Constructor
public MainPage()
{
InitializeComponent();
webBrowser1.Loaded += webBrowser1_Loaded;
}
void webBrowser1_Loaded(object sender, RoutedEventArgs e)
{
var html =
"<html><body>hi there" +
"<img src =\"http://alansmoneyblog.com/wp-content/uploads/2010/10/google-logo.jpg\"/>" +
"</body></html>";
webBrowser1.NavigateToString(html);
}
}
But, only text is being loaded and images are not being loaded. Am I missing some thing here?
UPDATE:
I updated the code and still the image is not coming.
There are some problems with proxy settings. But this wasted a lot of my time.