4 writes to _parent
PresentationCore (4)
Core\CSharp\System\Windows\Media\Visual.cs (2)
2633
child.
_parent
= this;
2724
child.
_parent
= null;
Core\CSharp\System\Windows\Media3D\Viewport2DVisual3D.cs (2)
394
child.
_parent
= this;
426
child.
_parent
= null;
42 references to _parent
PresentationCore (42)
Core\CSharp\MS\Internal\Media3D\GeneralTransform2Dto3Dto2D.cs (1)
101
Visual descendentVisual = (fromVisual == visual3Dchild.
_parent
) ? visual3Dchild : fromVisual;
Core\CSharp\System\Windows\Media\CompositionTarget.cs (1)
510
(visual.
_parent
!= null
Core\CSharp\System\Windows\Media\Visual.cs (16)
971
if ( (
_parent
== null
2621
if (child.
_parent
!= null)
2685
if (child == null || child.
_parent
== null)
2690
if (child.
_parent
!= this)
2811
return
_parent
;
4002
Debug.Assert(
_parent
!= null, "If oldParent is null, current parent should != null.");
4007
_parent
,
4206
current = currentAsVisual.
_parent
;
4241
Visual currentParent = current.
_parent
as Visual;
4245
if (current.
_parent
!= null && currentParent == null)
4247
((Visual3D)current.
_parent
).SetFlagsToRoot(value, flag);
4274
DependencyObject parent = current.
_parent
;
4601
g = gAsVisual.
_parent
;
5304
if (e.
_parent
== null)
5310
Visual parentAsVisual = e.
_parent
as Visual;
5315
Visual3D.PropagateFlags((Visual3D)e.
_parent
, flags, proxyFlags);
Core\CSharp\System\Windows\Media\VisualCollection.cs (14)
381
if ((value.
_parent
!= null) // Only a visual that isn't a visual parent or
422
Debug.Assert(value.
_parent
== null);
450
Visual oldParent = VisualTreeHelper.GetContainingVisual2D(child.
_parent
);
482
((visual.
_parent
!= null) // Only visuals that are not connected to another tree
530
else if (visual.
_parent
!= _owner)
565
if (visual.
_parent
!= _owner)
573
Debug.Assert(visual.
_parent
!= null);
668
return (visual.
_parent
== _owner);
688
Debug.Assert(_items[i].
_parent
== _owner);
731
((visual.
_parent
!= null) // Only visuals that are not connected to another tree
864
if (visual.
_parent
== _owner)
869
Debug.Assert(visual.
_parent
!= null);
870
Debug.Assert(destination == null || destination.
_parent
== visual.
_parent
);
Core\CSharp\System\Windows\Media3D\Viewport2DVisual3D.cs (3)
387
if (child.
_parent
!= null)
413
if (child == null || child.
_parent
== null)
418
if (child.
_parent
!= this)
Core\CSharp\System\Windows\UIElement.cs (7)
1456
if (
_parent
!= null)
1458
DependencyObject parent =
_parent
;
1562
parent = InputElement.GetContainingUIElement(
_parent
);
1576
parent = InputElement.GetContainingUIElement(
_parent
);
3688
parent = InputElement.GetContainingUIElement(uie.
_parent
);
3792
DependencyObject parent = InputElement.GetContainingUIElement(uie.
_parent
);
3907
DependencyObject parent = InputElement.GetContainingUIElement(
_parent
);