<Window x:Class="DependencyPropertyExample.HandleEvent"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="clr-namespace:DependencyPropertyExample"
    Title="DependencyPropertyExample" Height="300" Width="300"
    >
    <Grid>
      <Button x:Name="myButton" />

      <!-- Example 18-15. Invoke a command from XAML -->
      
      <Button Command="local:ClockControl.SnoozeCommand">Click me</Button>
      
      <!-- End of Example 18-15 -->
    </Grid>
</Window>
