c# - Android Webview equivalent in Windows Phone 8 app -


i have text html tags in it.

example : <i> play football , cricket </i>

now when try display text in textblock displays italics tag <i> well.

the data present in xml file , working on windows phone 8 application.

in android use webview, need use here ?

edit

i have tried using textblock inlines:

italic itltext = new italic(); itltext.inlines.add(new run() { text = "this example text in italics" }); inilinetext.inlines.add(itltext); 

it works issue here suppose have text below.

"this text in <i>italics</i> here" 

now display entire text in italics.

this depends on how content want display. if show large amount of html text, use webbrowser control that. in case have couple of tags i, em, b or strong, can use textblock, have parsing in order convert html suitable xaml components.

you have ask how many such controls need display on single page. if answer a few, use webbrowser then. if need display lots of them, have chat or feed, second route better.

edit: use following code:

inilinetext.inlines.add(new run() { text = "this text in " }); inilinetext.inlines.add(new run() { text = "italics", fontstyle = fontstyle.italic }); inilinetext.inlines.add(new run() { text = " here" }); 

i told you have parse original string see parts italic , not.


Comments

Popular posts from this blog

c# - How to get the current UAC mode -

postgresql - Lazarus + Postgres: incomplete startup packet -

javascript - Ajax jqXHR.status==0 fix error -