<Window x:Class="ButtonClick.Window1"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="ButtonClick" Height="300" Width="300"
    >
    <Grid HorizontalAlignment="Center" VerticalAlignment="Center">
      
      <!-- Example 5-1. Markup for a Button -->
      
      <Button Click="ButtonClicked">Button</Button>
      
      <!-- End of Example 5-1. -->
      
    </Grid>
</Window>
