Jul 13, 2015

Simple WPF Textblock example

Code:

<Window x:Class="WPFEX1.Window2"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="Window2" Height="500" Width="600">
    <Grid>
        <TextBlock HorizontalAlignment="Center" VerticalAlignment="Center" FontSize="32">
                        Hello, WPF! This is Textblock example
        </TextBlock>


    </Grid>
</Window>


Output:




No comments:

Post a Comment