2 writes to _parentUndoUnit
PresentationFramework (2)
System\Windows\Documents\ChangeBlockUndoRecord.cs (2)
44
_parentUndoUnit
= new TextParentUndoUnit(textContainer.TextSelection);
48
_parentUndoUnit
= new ParentUndoUnit(actionDescription);
10 references to _parentUndoUnit
PresentationFramework (10)
System\Windows\Documents\ChangeBlockUndoRecord.cs (10)
51
_undoManager.Open(
_parentUndoUnit
);
78
if (
_parentUndoUnit
!= null)
82
if (
_parentUndoUnit
.Container is UndoManager)
84
openedUnit = ((UndoManager)
_parentUndoUnit
.Container).OpenedUnit;
88
openedUnit = ((IParentUndoUnit)
_parentUndoUnit
.Container).OpenedUnit;
92
if (openedUnit ==
_parentUndoUnit
)
94
if (
_parentUndoUnit
is TextParentUndoUnit)
96
((TextParentUndoUnit)
_parentUndoUnit
).RecordRedoSelectionState();
99
_undoManager.Close(
_parentUndoUnit
, (
_parentUndoUnit
.LastUnit != null) ? UndoCloseAction.Commit : UndoCloseAction.Discard);