title: Align TextBlocks by baseline
body: <p>I have two TextBlocks, each with a different font size, and am trying to align them vertically so that their baselines match up.</p>
  
  <p>I know how to do this by creating multiple Run elements within a single TextBlock, but in this case my TextBlocks are not directly adjacent, so that won't work. Here's a simplified example of my layout:</p>
  
  <pre><code>&lt;Grid&gt;
    &lt;Grid.ColumnDefinitions&gt;
      &lt;ColumnDefinition Width="100"&gt;&lt;/ColumnDefinition&gt;
      &lt;ColumnDefinition Width="200"&gt;&lt;/ColumnDefinition&gt;
    &lt;/Grid.ColumnDefinitions&gt;
    &lt;Grid.RowDefinitions&gt;
      &lt;RowDefinition Height="100"&gt;&lt;/RowDefinition&gt;
    &lt;/Grid.RowDefinitions&gt;
    &lt;TextBlock Grid.Column="0" 
               FontSize="20" 
               VerticalAlignment="Bottom"&gt;Small&lt;/TextBlock&gt;
    &lt;TextBlock Grid.Column="1"                  
               FontSize="50" 
               VerticalAlignment="Bottom"&gt;Large&lt;/TextBlock&gt;
  &lt;/Grid&gt;
  </code></pre>
  
  <p>If I could find a way to calculate the baseline of the font in code, that would be good enough - I could do the alignment in code, using a Canvas or custom Panel - but I haven't been able to find any WP7 APIs for finding font metrics.</p>
  
  <p>I have found a very similar question <a href="https://stackoverflow.com/questions/2035943/align-bottoms-of-text-in-controls">here</a>, but the solution involves the FormattedText class, and unfortunately this is not available on WP7.</p>
  
  <p>I would really like to be able to do this without hardcoding any margins/offsets, if possible. </p>