8 references to LastUnit
PresentationFramework (8)
src\Framework\MS\Internal\Documents\UndoManager.cs (3)
233
if (unit !=
LastUnit
)
460
if (
LastUnit
is IParentUndoUnit)
462
((IParentUndoUnit)
LastUnit
).OnNextAdd();
src\Framework\System\Windows\Controls\Primitives\TextBoxBase.cs (2)
399
else if (undoManager.
LastUnit
is IParentUndoUnit)
401
((IParentUndoUnit)undoManager.
LastUnit
).OnNextAdd(); // TODO: Should IParentUndoUnit have a Lock() instead, now that Undo is internal?
src\Framework\System\Windows\Documents\ImmComposition.cs (1)
1969
if (_compositionUndoUnit != null && _compositionUndoUnit == undoManager.
LastUnit
&& !_compositionUndoUnit.Locked)
src\Framework\System\windows\Documents\TextEditorTyping.cs (2)
1835
if (This._typingUndoUnit != null && undoManager.
LastUnit
== This._typingUndoUnit && !This._typingUndoUnit.Locked)
1860
if (This._typingUndoUnit != null && undoManager.
LastUnit
== This._typingUndoUnit && !This._typingUndoUnit.Locked)