title: How to bind a TextBlock to a resource containing formatted text?
body: <p>I have a TextBlock in my WPF window.</p>
  
  <pre><code> &lt;TextBlock&gt;
       Some &lt;Bold&gt;formatted&lt;/Bold&gt; text.
   &lt;/TextBlock&gt;
  </code></pre>
  
  <p>When it is rendered it looks like this,</p>
  
  <blockquote>
    <p>Some <strong>formatted</strong> text.</p>
  </blockquote>
  
  <p>My question is, can I bind this inline "content" to a resource in my application?</p>
  
  <p>I got as far as:</p>
  
  <p>Making an application resource string,</p>
  
  <pre><code>myText="Some &lt;Bold&gt;formatted&lt;/Bold&gt; text."
  </code></pre>
  
  <p>and the following xaml (Some code omitted for brevity)</p>
  
  <pre><code> &lt;Window xmlns:props="clr-namespace:MyApp.Properties"&gt;
       &lt;Window.Resources&gt;
           &lt;props:Resources x:Key="Resources"/&gt;
       &lt;/Window.Resources&gt;
        &lt;TextBlock x:Name="Try1" 
            Text="{Binding Source={StaticResource Resources} Path=myText}"/&gt;
       &lt;TextBlock x:Name="Try2"&gt;
            &lt;Binding Source="{StaticResource Resources}" Path="myText" /&gt;
       &lt;/TextBlock&gt;
   &lt;/Window&gt;
  </code></pre>
  
  <p>Try1 renders with the tags in place and not effecting formatting.</p>
  
  <blockquote>
    <p>Some &lt;Bold>formatted&lt;Bold> text.</p>
  </blockquote>
  
  <p>Try2 will not compile or render because the resource "myText" is not of type Inline but a string.</p>
  
  <p>Is this seemingly simple task possible and if so how?</p>