Get XAML from WPF Custom RichTextFormat
- by Erika
I've looked at other posts, but i cant seem to find something that works. I have a custom control WPF RichTextBox and would like to obtain the XAML from this control.
I have tried the following
//rt is the name of this particular custom richtextbox
TextRange range = new TextRange(rt.Document.ContentStart, rt.Document.ContentEnd);
…