title: WPF FlowDocument Binding
body: <p>I am using Microsoft's <a href="http://msdn.microsoft.com/en-us/library/aa972129.aspx" rel="nofollow noreferrer">XAML/HTML converter</a> to convert HTML from a database into a XAML string. The Microsoft converter seems to be formatting the text correctly, but I'm having trouble binding the output to a XAML object. </p>
  
  <p>For example, using the following HTML:</p>
  
  <pre><code>&lt;span style="font-weight: bold; font-family: Georgia; color: rgb(0, 96, 144); text-decoration: underline;"&gt;Hello world.&lt;/span&gt;
  </code></pre>
  
  <p>I will get the XAML output:</p>
  
  <pre><code>&lt;Section xml:space="preserve" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"&gt;
  &lt;Paragraph&gt;
      &lt;Run FontWeight="bold" TextDecorations="Underline" FontFamily="georgia"&gt;Hello world.&lt;/Run&gt;
  &lt;/Paragraph&gt;
  </code></pre>
  
  <p></p>
  
  <p>Assuming the HTML is coming into the WPF application as the "Text" property of a database object, I then use Binding and Converters like so:</p>
  
  <pre><code>&lt;TextBlock Text="{Binding Path=ActiveDataItem.Text, Converter={StaticResource convertHTMLToXaml}}" /&gt;
  </code></pre>
  
  <p>Unfortunately, this just prints the XAML to the page and doesn't parse it. I'm assuming this is because I'm binding to the TextBlock and that's the expected outcome. My question is how do I bind this output a FlowDocument related control like a Paragraph, Run, Section, or whatever?</p>
  
  <p>Note: I realize there a quite a few threads dedicated to converting HTML to XAML. I have referenced most of them, but they are all lacking on this specific step. Any help or links are appreciated, thanks in advance.</p>