7 references to PeekUndoStack
PresentationFramework (7)
src\Framework\MS\Internal\Documents\UndoManager.cs (6)
287
if (UndoCount == 0 ||
PeekUndoStack
() != unit)
403
SetLastUnit(_topUndoIndex == -1 ? null :
PeekUndoStack
()); // can be null, which is fine
472
if (!(_topUndoIndex < UndoStack.Count &&
PeekUndoStack
() == null) // Non-null topmost stack item
479
if (
PeekUndoStack
() != null)
663
IParentUndoUnit lastParent = (IParentUndoUnit)
PeekUndoStack
();
912
else if (_topUndoIndex == _bottomUndoIndex - 1 &&
PeekUndoStack
() == null)
src\Framework\System\Windows\Documents\TextStore.cs (1)
3938
return undoManager.
PeekUndoStack
() as CompositionParentUndoUnit;