2 writes to UndoLimit
PresentationFramework (2)
System\Windows\Controls\Primitives\TextBoxBase.cs (2)
1445undoManager.UndoLimit = this.UndoLimit; 1674undoManager.UndoLimit = limit;
13 references to UndoLimit
PresentationFramework (13)
MS\Internal\Documents\UndoManager.cs (13)
429if (++_topUndoIndex == UndoLimit) 434&& (UndoLimit == -1 || UndoStack.Count < UndoLimit)) 442if (++_bottomUndoIndex == UndoLimit) 701for (i = _bottomUndoIndex; i < UndoLimit; i++) 746if (UndoLimit >= 0 && _topUndoIndex >= UndoLimit) 748List<IUndoUnit> undoStack = new List<IUndoUnit>(UndoLimit); 750for (int i = _topUndoIndex + 1 - UndoLimit; i <= _topUndoIndex; i++) 757_topUndoIndex = UndoLimit - 1; 879count = _topUndoIndex + (UndoLimit - _bottomUndoIndex) + 1; 1127Invariant.Assert(UndoLimit > 0); 1128_topUndoIndex = UndoLimit - 1; // This should never be possible with an unlimited stack