public void ClearDiffEditor() { var action = new Action(() => this.DiffEditor.Clear()); this.DiffEditor.Dispatcher.BeginInvoke(action); }