12 references to UndoStack
PresentationFramework (12)
src\Framework\MS\Internal\Documents\UndoManager.cs (12)
472if (!(_topUndoIndex < UndoStack.Count && PeekUndoStack() == null) // Non-null topmost stack item 473&& (UndoLimit == -1 || UndoStack.Count < UndoLimit)) 475UndoStack.Add(unit); 486UndoStack[_topUndoIndex] = unit; 672if (_topUndoIndex < 0 || _topUndoIndex == UndoStack.Count) 678return UndoStack[_topUndoIndex] as IUndoUnit; 908if (UndoStack.Count == 0 || _topUndoIndex < 0) 1146if (UndoStack.Count > 0) 1148UndoStack.Clear(); 1149UndoStack.TrimExcess(); 1166IUndoUnit unit = (IUndoUnit)UndoStack[_topUndoIndex]; 1167UndoStack[_topUndoIndex--] = null;