I have 开发者_运维百科an html file which containn images.These images are kept at location same as html file. I read the html file with the StreamReader and navigate using navigatetoString() method.But when navigated images inside the html file are not displayed. Below is the code:
StreamReader reader = new StreamReader(Microsoft.Xna.Framework.TitleContainer.OpenStream(@"abc.html"));
string html = reader.ReadToEnd();
browser.NavigateToString(html);
Where are the images? Are they Internet URLs? Are they embedded in resources?
If you need to embed an entire page into an app, then one way to do it is to put the entire page into IsolatedStorage - including css, scripts and images
See this example - http://technodave.wordpress.com/2010/11/11/moving-files-from-xap-to-isolated-storage-for-local-html-content-on-windows-phone-7/
精彩评论