private void videoSurface_RequestRemove(object sender, EventArgs e) { this.Dispatcher.BeginInvoke(new Action(() => { var surface =(sender as VideoSurface); Remove(surface); })); }