2 writes to UndoLimit
PresentationFramework (2)
src\Framework\System\Windows\Controls\Primitives\TextBoxBase.cs (2)
1533undoManager.UndoLimit = this.UndoLimit; 1778undoManager.UndoLimit = limit;
13 references to UndoLimit
PresentationFramework (13)
src\Framework\MS\Internal\Documents\UndoManager.cs (13)
468if (++_topUndoIndex == UndoLimit) 473&& (UndoLimit == -1 || UndoStack.Count < UndoLimit)) 481if (++_bottomUndoIndex == UndoLimit) 744for (i = _bottomUndoIndex; i < UndoLimit; i++) 789if (UndoLimit >= 0 && _topUndoIndex >= UndoLimit) 791List<IUndoUnit> undoStack = new List<IUndoUnit>(UndoLimit); 793for (int i = _topUndoIndex + 1 - UndoLimit; i <= _topUndoIndex; i++) 800_topUndoIndex = UndoLimit - 1; 922count = _topUndoIndex + (UndoLimit - _bottomUndoIndex) + 1; 1170Invariant.Assert(UndoLimit > 0); 1171_topUndoIndex = UndoLimit - 1; // This should never be possible with an unlimited stack