<Page xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      HorizontalAlignment="Stretch" VerticalAlignment="Stretch">

<!-- Example 16-8. Playing a sound with a trigger -->

<Rectangle Fill="Green">
  <Rectangle.Triggers>
    <EventTrigger RoutedEvent="Rectangle.MouseEnter">
      <SoundPlayerAction Source="c:\windows\media\ding.wav" />
    </EventTrigger>
  </Rectangle.Triggers>
</Rectangle>

<!-- End of Example 16-8. -->

</Page>
