Hello ,
I am new to WP7. I am working on developing a application in WP7. I want to display html text string in to the list box.
Lets say I am having 3 strings as below.
1) Head <b>northeast</b>
Head northeast // desired output
2) Slight <b>left</b>
Slight left // desired output
3) Continue onto <b>NH 8</b><div style="font-size:0.9em">Go through 2 roundabouts</div><div style="font-size:0.9em">Pass by Petrol Pump (on the left in 31.1 km)</div>
Continue onto NH 8
Go through 2 roundabouts
Pass by Petrol Pump (on the left in 31.1 km)
I want to show them in list control,textblock in such a way that it identifyies the html tags and displays text accordingly so it removes the html tagsand so on.. Meaning display text in textblock that is aware of html tags.
My Try:
1) Webcontrol
On button click i try below code but its not even showing me the Webbrowser control.....
string arrHTML = "Head <b>northeast</b>"; // fill html strings webBrowser.IsScriptEnabled = true;
webBrowser.NavigateToString(arrHTML); // show it
but the nither webcontrol or text is getting displayed.
Query
1) any idea why webbrowser not getting displayed?
2) any alternate way to show html text in textbox/textblock in list control which understands html tags?
Your help will be great.
Thanks,