<MediaElement Name="audio"/>
<Button Name="music" Content="点我有音乐哦">
<Button.Triggers>
<EventTrigger RoutedEvent="Button.Click">
<BeginStoryboard>
<Storyboard>
<MediaTimeline Source="7895.WAV" Storyboard.TargetName="audio" RepeatBehavior="Forever" />
</Storyboard>
</BeginStoryboard>
</EventTrigger>
</Button.Triggers>
</Button>
忘可供大家参考。。。。