开发者

Not able to see the images after reading html files in web browser in WP7

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/

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜