<Grid>
<TextBlock Height="23" HorizontalAlignment="Left" Margin="16,18,0,0" Name="textBlock1" Text="TextBlock" VerticalAlignment="Top" />
</Grid>
<Window.Resources>
<Style TargetType="{x:Type TextBlock}">
<Setter Property="HorizontalAlignment" Value="Left"/>
<Setter Property="VerticalAlignment" Value="Center"/>
<Setter Property="Foreground" Value="#ffffffff"/>
<Setter Property="FontSize" Value="16px"/>
<Setter Property="MinHeight" Value="50"/>
<Setter Property="Margin" Value="16,6,0,6"/>
<Setter Property="Padding" Value="4,8,4,4"/>
<Setter Property="MaxWidth" Value="332"/>
<Setter Property="TextWrapping" Value="Wrap"/>
</Style>
</Window.Resources>
public MainWindow()
{
InitializeComponent();
Loaded += new RoutedEventHandler(MainWindow_Loaded);
}
void MainWindow_Loaded(object sender, RoutedEventArgs e)
{
textBlock1.Text = "Tasti con caartteri";
}
The last word is missing.
If you change any letter in this word,it display ok.
If you add any letter in this word,it display ok.
If you delete style <Setter Property="TextWrapping" Value="Wrap"/> , ,it display ok
If you delete style <Setter Property="Padding" Value="4,8,4,4"/>, ,it display ok.
If you change fontsize to 15px,it display ok.