Playing a sound with a trigger
<Page xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" HorizontalAlignment="Stretch" VerticalAlignment="Stretch"> <Rectangle Fill="Green"> <Rectangle.Triggers> <EventTrigger RoutedEvent="Rectangle.MouseEnter"> <SoundPlayerAction Source="c:\windows\media\ding.wav" /> </EventTrigger> </Rectangle.Triggers> </Rectangle> </Page>