private void Mp3Player_PlaybackStateChanged(object sender, PlaybackStateEventArgs e)
 {
     PlayPauseToggleButton.IsEnabled = true;
     PlayPauseToggleButton.IsChecked = e.PlaybackState == PlaybackState.Playing ? true : false;
 }
Beispiel #2
0
 protected virtual void OnPlaybackStateChanged(PlaybackStateEventArgs e)
 {
     if (PlaybackStateChanged != null)
     {
         PlaybackStateChanged(this, e);
     }
 }