WPF - RichTextEditor

2.2k Views Asked by At

im searching for a Usercontrol that generates XAML-Code (Flowdocument Code)

For a Bold Text -> <Paragraph><Bold>Text</Bold></Paragraph>

2

There are 2 best solutions below

1
On BEST ANSWER

You may want to have a look at the RichTextBox in the Extended WPF Toolkit - http://wpftoolkit.codeplex.com/wikipage?title=RichTextBox

I haven't tried it, but according to the documentation it has a XamlFormatter as well.

0
On

From what kind of object do you want to generate the Xaml-code?

If it is a TextBox content you could try to use some Converter classes.