Displaying HTML text in Silverlight

I’m displaying text in my Silverlight 3 application that is using HTML markup, for example: 

うんどうかい で <b> いち </b> い に なった よ

the <b> tag makes the letter bold, but there is no standard text control in the Silverlight toolbox to process this as rich text such as:

うんどうかい で いち い に なった よ 

Luckially David Anson’s post provides a simple Silverlight control that I can include in my project and display the rich text as intended.


<MyLibrary:HtmlTextBlock Text="{Binding Sentences.Text}"  />

Thanks David!

Advertisements

2 thoughts on “Displaying HTML text in Silverlight

    1. Hard to say.. plugins for Silverlight?

      Best tip is to ensure your users use latest browsers. IE 8 and above for example.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s