示例#1
0
 private async void MediaPlayerClick(object sender, RoutedEventArgs e)
 {
     //best approach
     await SoundController.PlayUsingMediaPlayerAsync();
 }
示例#2
0
 private async void Alternate_OnClick(object sender, RoutedEventArgs e)
 {
     GridContainer.Children.Add(SoundController.loop);
     await SoundController.LoadAndPlayAsync();
 }