12 references to UndoStack
PresentationFramework (12)
MS\Internal\Documents\UndoManager.cs (12)
434if (!(_topUndoIndex < UndoStack.Count && PeekUndoStack() == null) // Non-null topmost stack item 435&& (UndoLimit == -1 || UndoStack.Count < UndoLimit)) 437UndoStack.Add(unit); 448UndoStack[_topUndoIndex] = unit; 630if (_topUndoIndex < 0 || _topUndoIndex == UndoStack.Count) 636return UndoStack[_topUndoIndex] as IUndoUnit; 866if (UndoStack.Count == 0 || _topUndoIndex < 0) 1104if (UndoStack.Count > 0) 1106UndoStack.Clear(); 1107UndoStack.TrimExcess(); 1124IUndoUnit unit = (IUndoUnit)UndoStack[_topUndoIndex]; 1125UndoStack[_topUndoIndex--] = null;