23 references to UndoCount
PresentationFramework (23)
MS\Internal\Documents\UndoManager.cs (8)
255if (UndoCount == 0 || PeekUndoStack() != unit) 510ArgumentOutOfRangeException.ThrowIfGreaterThan(count, UndoCount); 523Invariant.Assert(UndoCount > _minUndoStackCount); 619if (UndoCount > 0) 697List<IUndoUnit> undoStack = new List<IUndoUnit>(UndoCount); 918Invariant.Assert(index < this.UndoCount); 940Invariant.Assert(count + index <= this.UndoCount); 1123int undoCount = UndoCount - 1;
System\Windows\Controls\Primitives\TextBoxBase.cs (2)
316if (undoManager != null && undoManager.UndoCount > undoManager.MinUndoStackCount) 640(undoManager.UndoCount > undoManager.MinUndoStackCount ||
System\windows\Documents\TextEditor.cs (2)
574if (undoManager != null && undoManager.UndoCount > undoManager.MinUndoStackCount) 1885if (undoManager != null && undoManager.UndoCount > undoManager.MinUndoStackCount)
System\Windows\Documents\TextStore.cs (11)
2334initialUndoCount = undoManager.UndoCount; 3550UndoQuietly(undoManager.UndoCount - previousUndoCount); 3553int initialUndoCount = undoManager.UndoCount; 3568SetFinalDocumentState(undoManager, imeChangeStack, undoManager.UndoCount - initialUndoCount, imeSelectionAnchorOffset, imeSelectionMovingOffset, appSelectionAnchorOffset, appSelectionMovingOffset); 3650undoManager.MinUndoStackCount = undoManager.UndoCount; 3687undoManager.MinUndoStackCount = undoManager.UndoCount; 3736undoManager.MinUndoStackCount = undoManager.UndoCount; 3910int completeUnitCount = undoManager.UndoCount; 3925completeUnitCount = (undoManager.UndoCount - completeUnitCount); 4070int i = undoManager.UndoCount - 1; 4071int j = undoManager.UndoCount - 1;