views:

403

answers:

0

I have a TextBlock with wrapping enabled and while the text is wrapping, it is being wrapped in such a way that some text is truncated. The TextBlock is defined as

<TextBlock  
  x:Name="_txtLiveText" 
  Style="{StaticResource TranslationInfoTextBlockStyle}"
  Text="Live text displays here" 
  Width="Auto" 
  TextWrapping="Wrap"
  Grid.Column="1" 
  Grid.Row="3" 
  Margin="0,0,0,5" 
  Height="78" 
  VerticalAlignment="Top"/>

and the style it uses as

<Style x:Key="TranslationInfoTextBlockStyle" TargetType="TextBlock">
  <Setter Property="FontFamily" Value="Verdana,Arial,sans-serif"/>
  <Setter Property="FontSize" Value="11"/>
  <Setter Property="Foreground" Value="#399E06"/>
  <Setter Property="VerticalAlignment" Value="Center"/>
</Style>

When it contains the text "Your password for MiX Internet Tracking web site has been reset by your system administrator." it wraps so that "your" begins the second line, the top line is truncated midway through the first "e" in "reset".

Can anyone explain this wrapping behaviour?