8 references to LastUnit
PresentationFramework (8)
MS\Internal\Documents\UndoManager.cs (3)
203
if (unit !=
LastUnit
)
421
if (
LastUnit
is IParentUndoUnit)
423
((IParentUndoUnit)
LastUnit
).OnNextAdd();
System\Windows\Controls\Primitives\TextBoxBase.cs (2)
368
else if (undoManager.
LastUnit
is IParentUndoUnit)
370
((IParentUndoUnit)undoManager.
LastUnit
).OnNextAdd(); // Should IParentUndoUnit have a Lock() instead, now that Undo is internal?
System\Windows\Documents\ImmComposition.cs (1)
1757
if (_compositionUndoUnit != null && _compositionUndoUnit == undoManager.
LastUnit
&& !_compositionUndoUnit.Locked)
System\windows\Documents\TextEditorTyping.cs (2)
1783
if (This._typingUndoUnit != null && undoManager.
LastUnit
== This._typingUndoUnit && !This._typingUndoUnit.Locked)
1808
if (This._typingUndoUnit != null && undoManager.
LastUnit
== This._typingUndoUnit && !This._typingUndoUnit.Locked)