title: How to superscript a string in Application.Resources
body: <p>I already know how to do it in wpf as</p>
  
  <pre><code>&lt;TextBlock HorizontalAlignment="Left" Margin="359,10,0,0" 
             TextWrapping="Wrap" VerticalAlignment="Top" Width="75"&gt;
      &lt;Run&gt;X&lt;/Run&gt;
      &lt;Run BaselineAlignment="Superscript" FontSize="8"&gt;4&lt;/Run&gt;
  &lt;/TextBlock&gt;
  </code></pre>
  
  <p>or <a href="https://stackoverflow.com/a/2095699/3430839">this answer</a>, or in the code as</p>
  
  <pre><code>string area;
  area = "mm\xB2";
  testTblock.Text = area;
  </code></pre>
  
  <p>But how you can do it in Application.Resources?  As</p>
  
  <pre><code>&lt;Application.Resources&gt;
  &lt;System:String x:Key="area"&gt;
       //what should be here?
  &lt;/System:String&gt;
  </code></pre>
  
  <p>so that I could apply it to the DynamicResource as</p>
  
  <pre><code>&lt;TextBlock Text="{DynamicResource area}" /&gt;
  </code></pre>