private void VideoPlayer_IsPlayingChanged(object sender, RoutedEventArgs e) { IsPlayingChangedEventArgs isPlayingChangedEventArgs = (IsPlayingChangedEventArgs)e; if (isPlayingChangedEventArgs.NewIsPlaying) { this.playButton.Content = "Pause"; } else { this.playButton.Content = "Play"; } }
private void OnIsPlayingChanged(object sender, IsPlayingChangedEventArgs e) { IsPlayingChanged?.Invoke(this, new SubscriptionsEventArgs <ILibrary, IsPlayingChangedEventArgs>(sender, e)); }