Search code examples
htmlwindows-phone-7

HTML in WP7 without webbrowser control


Is there a control in WP7, other than a WebBrowser, which can display basic HTML (a few <p>s, <b>s, <i>s, <div>s and <span>s) inline?

I cannot use a WebBrowser for my app because I need the control to live inside a pivot (i.e. not swallow any gestures), and to keep the background of the rest of the pivot.


Solution

  • If it's basic markup you can always transform the HTML with the help of the HTML Agility Pack to a RichTextBox. (See: http://debugmode.net/2011/06/02/richtextbox-in-windows-phone-7-1-or-mango/)