My application has a RadRichTextBox to collect styled text from users, working great. The RadRichTextBox has an associated HtmlDataProvider and I'm storing the Html property as a string value on a Message view model. However, in another area of my application, I want to load and display the text entered in this RadRichTextBox as plain text, as a property on a different view model, unrelated to the original Message view model, without any styling added by the user. Is there a way to accomplish this without storing a second string property on the Message view model, i.e. is there a way to remove the html markup from the MessageText property?
The RadRichTextBox definition and associated HtmlDataProvider:
<telerik:HtmlDataProvider x:Name="HtmlProvider" RichTextBox="{Binding ElementName=htmlRichTextBox}" Html="{Binding MessageText, Mode=TwoWay}" /><telerik:RadRichTextBox x:Name="htmlRichTextBox" IsSpellCheckingEnabled="False" Height="300"/>