Jan 18, 2015 at 4:50 PM
Edited Jan 18, 2015 at 4:54 PM
In one of my apps I have been trying for "years" to render HTML accordingly, but I've always hit the hard wall that is the WebView needing a fixed size. In the context of my app, the HTML content that needs rendering can have any size. I was trying
one more time to make it work when I saw that you also have a control for that called HtmlTextBlock. It seemed perfect for me, because I am not expecting the rendered HTML to be very complex: just images and font styles.
I immediately tried it and the text is rendered, but instead of images I get the ACTUAL tag "img" in the content and NOT the images. I have attached a screenshot of the end result:
It's not very easy to see because those generated tags are in blue and my app's background is black.
A sample of the first row content is written next:
"I will start this out with a person random in the pool.
<div><span class="photo_container pc_m bbml_img"><a data-track="thumb" href="/photos/ringozang/4143097936/" title="Metro-SH #1 by Ringo.Zang" ><img class='notsowide' src="https://ec.yimg.com/ec?url=https%3A%2F%2Ffarm3.staticflickr.com%2F2462%2F4143097936_4023c5bd52_m.jpg&t=1421601756&sig=TpLeO_4y4w7d520gDcfvFA--~B" width="165" height="240" alt="Metro-SH #1 by Ringo.Zang" class="pc_img" border="0" /></a></span></div>"
In the Wiki
of that control you say that "Some generators are missing in the WinRT version." Do they include images? If yes, can you please update this control now? From what I can see in my app it's just the img tag that doesn't get rendered.