I am trying to bind a RichTextBox to data from an XML file where text within a paragraph may be tagged with formatting tags. As an example the text may look like this:
"The size of the area is 5000 m<superscript>2</superscript>".
Text may also contain other formatting tags such as <bold> or <italic>:
"The quick brown fox <bold>jumps</bold> over the <italic>lazy</italic> dog".
I assume that I have to somehow transform the tagged text into a format that the textbox can render correctly (rtf?), but I don't know how.
Can somebody help?
Thanks,
Sacha
"The size of the area is 5000 m<superscript>2</superscript>".
Text may also contain other formatting tags such as <bold> or <italic>:
"The quick brown fox <bold>jumps</bold> over the <italic>lazy</italic> dog".
I assume that I have to somehow transform the tagged text into a format that the textbox can render correctly (rtf?), but I don't know how.
Can somebody help?
Thanks,
Sacha