Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to display simple HTML in a Silverlight textblock?

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?

like image 645
Edward Tanguay Avatar asked Apr 14 '09 15:04

Edward Tanguay


1 Answers

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.

like image 130
Noldorin Avatar answered Oct 14 '22 13:10

Noldorin