I am trying to use the following code but it seems that TextRange only returns the 'plain' text from WPF Richtextbox, it does not return the 'rtf' of the control unlike in Winforms, how can I then get the rtf of the Richtextbox control?
Code:
TextRange textRange = new TextRange(RTB.Document.ContentStart, RTB.Document.ContentEnd );
MessageBox.Show(textRange.Text);