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
Post a Comment