7 references to PeekUndoStack
PresentationFramework (7)
MS\Internal\Documents\UndoManager.cs (6)
255if (UndoCount == 0 || PeekUndoStack() != unit) 368SetLastUnit(_topUndoIndex == -1 ? null : PeekUndoStack()); // can be null, which is fine 434if (!(_topUndoIndex < UndoStack.Count && PeekUndoStack() == null) // Non-null topmost stack item 441if (PeekUndoStack() != null) 621IParentUndoUnit lastParent = (IParentUndoUnit)PeekUndoStack(); 870else if (_topUndoIndex == _bottomUndoIndex - 1 && PeekUndoStack() == null)
System\Windows\Documents\TextStore.cs (1)
4112return undoManager.PeekUndoStack() as CompositionParentUndoUnit;