title: How to work with RichTextBox in WPF
body: <p>I have a WPF application in which I want to convert a TextBox into a RichTextBox. I have already written the following lines of code:</p>
  
  <pre><code>            &lt;RichTextBox&gt;
                  &lt;FlowDocument&gt;
                      &lt;Paragraph&gt;
                          &lt;Run Text="{Binding GeneralDescription}" /&gt;
                      &lt;/Paragraph&gt;
                  &lt;/FlowDocument&gt;
              &lt;/RichTextBox&gt;
  </code></pre>
  
  <p>This has the effect that the string GeneralDescription is displayed and I can edit and format it. Now I have the problem that when I mark a part of the text, format it (e.g. make it bold), save the document and re-open the document, only the part of the text until the formatting is displayed. I am not sure if the error lies within the display or within the saving. In either case it's annoying. How can I make it work? Is it a problem that GeneralDescription is of type string?</p>
  
  <p>Thanks in advance.</p>