c# - Finding the best way to show html text in RichTextBlock -


i have string "some tmp string text " or "some tmp string text" or other html format.

the requirement show text same format in richtextblock.

to this, tried make thing this:

   <richtextblock x:name="rtb">             <paragraph x:name="par">                 <run fontstyle="italic"                      fontweight="bold">                     tmp text                 </run>             </paragraph>                     </richtextblock> 

but formats text in run element, not : "some tmp string text "

i tried make run elements programmatically , add them paragraph, have same problem.

any suggestions?


Comments

Popular posts from this blog

neo4j - finding mutual friends in a cypher statement starting with three or more persons -

php - How to remove letter in front of the word laravel -

minify - Minimizing css files -