private async void PlayPauseClick(object sender, RoutedEventArgs e)
 {
     try
     {
         await Session.TryTogglePlayPauseAsync();
     }
     catch (Exception) { }
 }
Exemple #2
0
 public static IAsyncOperation <bool> PlayPause() => _smtc?.TryTogglePlayPauseAsync();