<Window x:Class="FirstWPFProgram" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Title="First WPF Program" Height="300" Width="300"> <Grid> <StackPanel> <TextBlock Name="textBlock" Margin="5" TextAlignment="Center" Text="Hello WPF!" /> </StackPanel> </Grid> </Window>