Adding border to TextBlock with Border

image_pdfimage_print


   
     
<Window xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      HorizontalAlignment="Center" VerticalAlignment="Center"
      TextElement.FontFamily="Palatino Linotype"
      FontSize="40">

    <Border BorderBrush="Black" BorderThickness="2" Width="213">
        <TextBlock TextTrimming="None" Text="Too much text." />
    </Border>

</Window>