2 writes to _parentUndoUnit
PresentationFramework (2)
System\Windows\Documents\ChangeBlockUndoRecord.cs (2)
45
_parentUndoUnit
= new TextParentUndoUnit(textContainer.TextSelection);
49
_parentUndoUnit
= new ParentUndoUnit(actionDescription);
10 references to _parentUndoUnit
PresentationFramework (10)
System\Windows\Documents\ChangeBlockUndoRecord.cs (10)
52
_undoManager.Open(
_parentUndoUnit
);
79
if (
_parentUndoUnit
!= null)
83
if (
_parentUndoUnit
.Container is UndoManager)
85
openedUnit = ((UndoManager)
_parentUndoUnit
.Container).OpenedUnit;
89
openedUnit = ((IParentUndoUnit)
_parentUndoUnit
.Container).OpenedUnit;
93
if (openedUnit ==
_parentUndoUnit
)
95
if (
_parentUndoUnit
is TextParentUndoUnit)
97
((TextParentUndoUnit)
_parentUndoUnit
).RecordRedoSelectionState();
100
_undoManager.Close(
_parentUndoUnit
, (
_parentUndoUnit
.LastUnit != null) ? UndoCloseAction.Commit : UndoCloseAction.Discard);