2 writes to UndoLimit
PresentationFramework (2)
System\Windows\Controls\Primitives\TextBoxBase.cs (2)
1507undoManager.UndoLimit = this.UndoLimit; 1748undoManager.UndoLimit = limit;
13 references to UndoLimit
PresentationFramework (13)
MS\Internal\Documents\UndoManager.cs (13)
439if (++_topUndoIndex == UndoLimit) 444&& (UndoLimit == -1 || UndoStack.Count < UndoLimit)) 452if (++_bottomUndoIndex == UndoLimit) 711for (i = _bottomUndoIndex; i < UndoLimit; i++) 756if (UndoLimit >= 0 && _topUndoIndex >= UndoLimit) 758List<IUndoUnit> undoStack = new List<IUndoUnit>(UndoLimit); 760for (int i = _topUndoIndex + 1 - UndoLimit; i <= _topUndoIndex; i++) 767_topUndoIndex = UndoLimit - 1; 889count = _topUndoIndex + (UndoLimit - _bottomUndoIndex) + 1; 1137Invariant.Assert(UndoLimit > 0); 1138_topUndoIndex = UndoLimit - 1; // This should never be possible with an unlimited stack