title: WPF TextBlock inside a Scrollviewer cuts off some text
body: <p>So I have this problem, a textblock's text gets cut off, even though you can still scroll with scrollviewer to the end. </p>
  
  <p><img src="https://i.stack.imgur.com/Lz4dv.png" alt="Text gets sort of &quot;cut off&quot;">
  You can see the scrollviewer is still able to scroll to where the text should be.</p>
  
  <p>Heres the XAML:</p>
  
  <pre><code>&lt;Grid&gt;
      &lt;ScrollViewer Height="Auto" VerticalScrollBarVisibility="Auto" VerticalContentAlignment="Stretch" HorizontalContentAlignment="Stretch" &gt;
          &lt;TextBlock x:Name="text" Padding="5" Margin="0" TextWrapping="Wrap" Text="" FontSize="24" TextTrimming="WordEllipsis" VerticalAlignment="Bottom" /&gt;
      &lt;/ScrollViewer&gt;
  &lt;/Grid&gt;
  </code></pre>
  
  <p>EDIT the whole pivot control code:</p>
  
  <pre><code>&lt;controls:Pivot x:Name="pivot" Margin="0" Grid.Row="1" Title="title" VerticalContentAlignment="Stretch" HorizontalContentAlignment="Stretch"&gt;
          &lt;controls:PivotItem Header="Straipsnis"&gt;
              &lt;Grid&gt;
                  &lt;ScrollViewer Height="Auto" VerticalScrollBarVisibility="Auto" VerticalContentAlignment="Stretch" HorizontalContentAlignment="Stretch" &gt;
                      &lt;Border BorderBrush="White" BorderThickness="1"&gt;
                          &lt;TextBlock x:Name="text" Padding="5" TextWrapping="Wrap" Text="" FontSize="24"/&gt;
                      &lt;/Border&gt;
                  &lt;/ScrollViewer&gt;
              &lt;/Grid&gt;
          &lt;/controls:PivotItem&gt;
          &lt;controls:PivotItem Header="Komentarai"&gt;
              &lt;Grid&gt;
                  &lt;ListBox x:Name="commentsListBox" ItemTemplate="{StaticResource CommentsList}" Height="Auto" Width="Auto" VerticalContentAlignment="Stretch" HorizontalContentAlignment="Stretch" HorizontalAlignment="Stretch" FontSize="20"/&gt;
                  &lt;TextBlock x:Name="errorText" TextWrapping="Wrap" Text="Nėra komentarų..." FontSize="36" HorizontalAlignment="Left" Margin="10,0,0,0"/&gt;
              &lt;/Grid&gt;
          &lt;/controls:PivotItem&gt;
      &lt;/controls:Pivot&gt;
  </code></pre>