2 writes to _parentUndoUnit
PresentationFramework (2)
System\Windows\Documents\ChangeBlockUndoRecord.cs (2)
47
_parentUndoUnit
= new TextParentUndoUnit(textContainer.TextSelection);
51
_parentUndoUnit
= new ParentUndoUnit(actionDescription);
10 references to _parentUndoUnit
PresentationFramework (10)
System\Windows\Documents\ChangeBlockUndoRecord.cs (10)
54
_undoManager.Open(
_parentUndoUnit
);
81
if (
_parentUndoUnit
!= null)
85
if (
_parentUndoUnit
.Container is UndoManager)
87
openedUnit = ((UndoManager)
_parentUndoUnit
.Container).OpenedUnit;
91
openedUnit = ((IParentUndoUnit)
_parentUndoUnit
.Container).OpenedUnit;
95
if (openedUnit ==
_parentUndoUnit
)
97
if (
_parentUndoUnit
is TextParentUndoUnit)
99
((TextParentUndoUnit)
_parentUndoUnit
).RecordRedoSelectionState();
102
_undoManager.Close(
_parentUndoUnit
, (
_parentUndoUnit
.LastUnit != null) ? UndoCloseAction.Commit : UndoCloseAction.Discard);