Updating an Image UI property from a BackgroundWorker thread
问题 In a WPF application I'm writing, I have a TransformedBitmap property which is bound to an Image object on the UI. Whenever I change this property, the Image is updated (and thus the image being displayed to the screen is updated). In order to prevent the UI from freezing or becoming unresponsive whilst I retrieve the next image, I'm attempting to the snapshot retrieval with a BackgroundWorker like this: private void bw_DoWork(object sender, DoWorkEventArgs e) { e.Result = this.snapshotHelper