private void TextBuffer_ChangedLowPriority(object sender, TextContentChangedEventArgs e) { var changedSpans = e.Changes.Select(c => c.OldSpan); foreach (var span in changedSpans) { HistoryHelper.AddItemToHistory(_control.CodeDocumentViewModel, span); } }
public void ClickItem(object startLinePosition) { HistoryHelper.AddItemToHistory(this); System.Windows.Threading.Dispatcher.CurrentDispatcher.VerifyAccess(); Control.SelectLine(startLinePosition); }