<< Latest Post

Thursday, June 26, 2014

Displaying Static HTML data in Windows Phone 8


If you want to display static HTML in Windows Phone 8 App, Web Browser control seems to be the only available default control. If Web Browser control is not acceptable, then another option is to use the FixedHTMLTextBlock from an external library called mytoolkit. The library is a free download through CodePlex, but the easier option is to download it from Visual Studio project using NuGet. 

Here are the steps to do it -

  • Search, download & reference mytoolkit & mytoolkit.extended from NuGet or CodePlex.

  • Add the following namespace to the XAML page
    xmlns:mytoolkit="clr-namespace:MyToolkit.Controls;assembly=MyToolkit.Extended"

  • Start using the FixedHtmlTextBlock in the XAML code as follows
    <mytoolkit:FixedHtmlTextBlock  Html="<Any Html Text>"/>


MyToolKit Library -

Labels: , , , , , , , , , , , , ,

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]