4 writes to _parent
PresentationCore (4)
System\Windows\Media\Visual.cs (2)
2608
child.
_parent
= this;
2699
child.
_parent
= null;
System\Windows\Media3D\Viewport2DVisual3D.cs (2)
385
child.
_parent
= this;
417
child.
_parent
= null;
42 references to _parent
PresentationCore (42)
MS\Internal\Media3D\GeneralTransform2DTo3DTo2D.cs (1)
102
Visual descendentVisual = (fromVisual == visual3Dchild.
_parent
) ? visual3Dchild : fromVisual;
System\Windows\Media\CompositionTarget.cs (1)
478
(visual.
_parent
!= null
System\Windows\Media\Visual.cs (16)
961
if ( (
_parent
== null
2596
if (child.
_parent
!= null)
2660
if (child == null || child.
_parent
== null)
2665
if (child.
_parent
!= this)
2785
return
_parent
;
3972
Debug.Assert(
_parent
!= null, "If oldParent is null, current parent should != null.");
3977
_parent
,
4173
current = currentAsVisual.
_parent
;
4208
Visual currentParent = current.
_parent
as Visual;
4212
if (current.
_parent
!= null && currentParent == null)
4214
((Visual3D)current.
_parent
).SetFlagsToRoot(value, flag);
4241
DependencyObject parent = current.
_parent
;
4555
g = gAsVisual.
_parent
;
5257
if (e.
_parent
== null)
5263
Visual parentAsVisual = e.
_parent
as Visual;
5268
Visual3D.PropagateFlags((Visual3D)e.
_parent
, flags, proxyFlags);
System\Windows\Media\VisualCollection.cs (14)
364
if ((value.
_parent
!= null) // Only a visual that isn't a visual parent or
405
Debug.Assert(value.
_parent
== null);
433
Visual oldParent = VisualTreeHelper.GetContainingVisual2D(child.
_parent
);
465
((visual.
_parent
!= null) // Only visuals that are not connected to another tree
513
else if (visual.
_parent
!= _owner)
548
if (visual.
_parent
!= _owner)
556
Debug.Assert(visual.
_parent
!= null);
651
return (visual.
_parent
== _owner);
671
Debug.Assert(_items[i].
_parent
== _owner);
712
((visual.
_parent
!= null) // Only visuals that are not connected to another tree
834
if (visual.
_parent
== _owner)
839
Debug.Assert(visual.
_parent
!= null);
840
Debug.Assert(destination == null || destination.
_parent
== visual.
_parent
);
System\Windows\Media3D\Viewport2DVisual3D.cs (3)
378
if (child.
_parent
!= null)
404
if (child == null || child.
_parent
== null)
409
if (child.
_parent
!= this)
System\Windows\UIElement.cs (7)
1442
if (
_parent
!= null)
1444
DependencyObject parent =
_parent
;
1548
parent = InputElement.GetContainingUIElement(
_parent
);
1562
parent = InputElement.GetContainingUIElement(
_parent
);
3653
parent = InputElement.GetContainingUIElement(uie.
_parent
);
3757
DependencyObject parent = InputElement.GetContainingUIElement(uie.
_parent
);
3867
DependencyObject parent = InputElement.GetContainingUIElement(
_parent
);