title: WPF TextBlock Padding is cutting off text
body: <p>I have a <code>TextBlock</code> in a <code>Grid</code> with its <code>Padding</code> attribute set to 5. Sometimes the last character is cut off, depending on what string the <code>Text</code> property is set to.</p>
  
  <pre><code>&lt;UserControl
      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      x:Class="SomeClass"&gt;
      &lt;ScrollViewer Padding="5" VerticalScrollBarVisibility="Auto"&gt;
          &lt;Grid&gt;
              &lt;Grid.ColumnDefinitions&gt;
                  &lt;ColumnDefinition Width="Auto" /&gt;
                  &lt;ColumnDefinition /&gt;
              &lt;/Grid.ColumnDefinitions&gt;
              &lt;Grid.RowDefinitions&gt;
                  &lt;RowDefinition Height="Auto" /&gt;
              &lt;/Grid.RowDefinitions&gt;
              &lt;Label
                  Grid.Row="0" Grid.Column="0"
                  Content="SomeLabel"
                  HorizontalAlignment="Right"
                  HorizontalContentAlignment="Right"
                  VerticalAlignment="Center" /&gt;
              &lt;TextBlock
                  Grid.Row="0" Grid.Column="1"
                  HorizontalAlignment="Left"
                  Padding="5"
                  Text="0x0F"
                  TextWrapping="Wrap"
                  VerticalAlignment="Top" /&gt;
          &lt;/Grid&gt;
      &lt;/ScrollViewer&gt;
  &lt;/UserControl&gt;
  </code></pre>
  
  <p>When the <code>Text</code> is set to <code>0x0F</code> the <code>F</code> is not visible. When it is set to <code>0xAB</code> the string displays just fine. Setting the <code>Padding</code> to 0 also makes the string display just fine.</p>