views:

1871

answers:

1

I've got a source of data that has HTML tags in it (B, I, A) and need to display this in a Silverlight ListBox.

Searching around it seems to be an issue but most of the posts are old and have to do with Silverlight 1 it seems.

What is currently the best way to display simple HTML with Silverlight, if nothing else, just the B, I and A tags for bold, italic and hyperlinks?

+1  A: 

There's no native support in Silverlight 2.0. However, someone has gone and created a HtmlTextBlock control which should be suitable for your purposes. Check out the author's block post on the subject. There's also a demo page here.

Noldorin
Seems like the server hosting the blog is down at the moment. You can still download the source from http://delay.members.winisp.net/SilverlightHtmlTextBlock/SilverlightHtmlTextBlock.zip. Note that it was written for the Silverlight 2.0 beta, so it may need some minor modifications to work now.
Noldorin