8 references to LastUnit
PresentationFramework (8)
MS\Internal\Documents\UndoManager.cs (3)
204
if (unit !=
LastUnit
)
422
if (
LastUnit
is IParentUndoUnit)
424
((IParentUndoUnit)
LastUnit
).OnNextAdd();
System\Windows\Controls\Primitives\TextBoxBase.cs (2)
369
else if (undoManager.
LastUnit
is IParentUndoUnit)
371
((IParentUndoUnit)undoManager.
LastUnit
).OnNextAdd(); // Should IParentUndoUnit have a Lock() instead, now that Undo is internal?
System\Windows\Documents\ImmComposition.cs (1)
1758
if (_compositionUndoUnit != null && _compositionUndoUnit == undoManager.
LastUnit
&& !_compositionUndoUnit.Locked)
System\windows\Documents\TextEditorTyping.cs (2)
1796
if (This._typingUndoUnit != null && undoManager.
LastUnit
== This._typingUndoUnit && !This._typingUndoUnit.Locked)
1821
if (This._typingUndoUnit != null && undoManager.
LastUnit
== This._typingUndoUnit && !This._typingUndoUnit.Locked)