I have a C# Windows Phone 8 app with a ComponentOne RichTextBox contorl. How do I get the selected HTML that corresponds to the current value of a RichTextBox control's SelectedText property? (the current selection)
For example, suppose I have the current HTML in the RichTextbox:
<p>Some text</p><p><i>italicized text</i></p><p>Text not selected</p>
And the user selects "Some text" and "italicized text" by tapping. The SelectedText property will be "some text italicized text" and what I want to back as the selected HTML is:
<p>Some text</p><p><i>italicized text</i></p>
Is there a way to do this without doing some really messy operation walking the HTML while accumulating tags until the accumulated text matches the SelectedText property?