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