private void Stop_Executed(object sender, RoutedEventArgs e) { CDTPlayer.Stop(); CDTPlayer.Position = TimeSpan.Zero; mediaPlayerIsPlaying = false; }
private void Stop_Executed(object sender, RoutedEventArgs e) { try { mediaUriElement.Stop(); CDTPlayer.Stop(); mediaUriElement.MediaPosition = 0; CDTPlayer.Position = TimeSpan.Zero; mediaPlayerIsPlaying = false; } catch (Exception ex) { } }
private void Stop_Executed(object sender, ExecutedRoutedEventArgs e) { CDTPlayer.Stop(); mediaPlayerIsPlaying = false; }