I’ve got a use case where I’d like to display multiple html fragments within a single UI. My first attempt was to use a number of webbrowser controls and NavigateToString. I didn’t really like the way that looked and having multiple of those controls does not seem to work well at all (slow load time, flickering and even crashes).
Attempt #2 is to convert the html fragment into a FlowDocument. After I get that conversion working by porting this code to WP7. So now I’ve got some text that I can load into a FlowDocument but then I’m all like “hey where’s the FlowDocument?” It looks like FlowDocument didn’t make the cut for WP7 though some System.Windows.Documents types that did (FontSource, Glyphs, Inline, InlineCollection, LineBreak, Run)
I’d rather not convert the html in to raw text as I’d like to paragraphs and hyperlinks. Is there a way to present a flowdocument or something like it on WP7?
You can use a
TextBlock(or aRichTextBoxif you use Mango) withRunandHyperLinkelements inside. That’s the only form of FlowDocument there is available for Windows Phone.Example:
You can read more in this article