12 references to UndoStack
PresentationFramework (12)
src\Framework\MS\Internal\Documents\UndoManager.cs (12)
472
if (!(_topUndoIndex <
UndoStack
.Count && PeekUndoStack() == null) // Non-null topmost stack item
473
&& (UndoLimit == -1 ||
UndoStack
.Count < UndoLimit))
475
UndoStack
.Add(unit);
486
UndoStack
[_topUndoIndex] = unit;
672
if (_topUndoIndex < 0 || _topUndoIndex ==
UndoStack
.Count)
678
return
UndoStack
[_topUndoIndex] as IUndoUnit;
908
if (
UndoStack
.Count == 0 || _topUndoIndex < 0)
1146
if (
UndoStack
.Count > 0)
1148
UndoStack
.Clear();
1149
UndoStack
.TrimExcess();
1166
IUndoUnit unit = (IUndoUnit)
UndoStack
[_topUndoIndex];
1167
UndoStack
[_topUndoIndex--] = null;