private void PlayFile(object sender, RoutedEventArgs e) { if (displayedMediaPlayer != null) { bool succeed = displayedMediaPlayer.togglePlay(!isPlaying); if (succeed) { isPlaying = !isPlaying; PlayBtn.Active(isPlaying); } } }
public void autoPaused() { isPlaying = false; PlayBtn.Active(isPlaying); }