12 references to UndoStack
PresentationFramework (12)
MS\Internal\Documents\UndoManager.cs (12)
433
if (!(_topUndoIndex <
UndoStack
.Count && PeekUndoStack() == null) // Non-null topmost stack item
434
&& (UndoLimit == -1 ||
UndoStack
.Count < UndoLimit))
436
UndoStack
.Add(unit);
447
UndoStack
[_topUndoIndex] = unit;
629
if (_topUndoIndex < 0 || _topUndoIndex ==
UndoStack
.Count)
635
return
UndoStack
[_topUndoIndex] as IUndoUnit;
865
if (
UndoStack
.Count == 0 || _topUndoIndex < 0)
1103
if (
UndoStack
.Count > 0)
1105
UndoStack
.Clear();
1106
UndoStack
.TrimExcess();
1123
IUndoUnit unit = (IUndoUnit)
UndoStack
[_topUndoIndex];
1124
UndoStack
[_topUndoIndex--] = null;