private void UpdateImage(ImageSource data) { this.videoControl.Dispatcher.Invoke(new Action(() => { this.videoControl.ShowImageSource(data); })); } }