private void motion_player_PlaybackProgress(object sender, PlaybackProgressEventArgs e) { // Update the slider in the UI thread Action<Slider, double> act = new Action<Slider, double>(updateSlider); Dispatcher.BeginInvoke(act, play_slider, e.Timestamp); showFrameAtTimestamp(e.Timestamp); }
protected virtual void OnPlaybackProgress(PlaybackProgressEventArgs e) { if (PlaybackProgress != null) { PlaybackProgress(this, e); } }