public void WriteToDiffWindow(string message) { var action = new Action(() => this.DiffEditor.AppendText(Environment.NewLine + message)); this.DiffEditor.Dispatcher.BeginInvoke(action); }