No, you need to wrap your TextBlock in a borderline. Example:
<Border BorderThickness="1" BorderBrush="Black"> <TextBlock ... /> </Border>
Of course, you can set these properties ( BorderThickness , BorderBrush ) through the styles:
<Style x:Key="notCalledBorder" TargetType="{x:Type Border}"> <Setter Property="BorderThickness" Value="1" /> <Setter Property="BorderBrush" Value="Black" /> </Style> <Border Style="{StaticResource notCalledBorder}"> <TextBlock ... /> </Border>
Heinzi Oct 19 '10 at 16:32 2010-10-19 16:32
source share