4 writes to _parent
PresentationCore (4)
System\Windows\Media\Visual.cs (2)
2592
child.
_parent
= this;
2683
child.
_parent
= null;
System\Windows\Media3D\Viewport2DVisual3D.cs (2)
368
child.
_parent
= this;
400
child.
_parent
= null;
42 references to _parent
PresentationCore (42)
MS\Internal\Media3D\GeneralTransform2DTo3DTo2D.cs (1)
86
Visual descendentVisual = (fromVisual == visual3Dchild.
_parent
) ? visual3Dchild : fromVisual;
System\Windows\Media\CompositionTarget.cs (1)
456
(visual.
_parent
!= null
System\Windows\Media\Visual.cs (16)
945
if ( (
_parent
== null
2580
if (child.
_parent
!= null)
2644
if (child == null || child.
_parent
== null)
2649
if (child.
_parent
!= this)
2769
return
_parent
;
3956
Debug.Assert(
_parent
!= null, "If oldParent is null, current parent should != null.");
3961
_parent
,
4157
current = currentAsVisual.
_parent
;
4192
Visual currentParent = current.
_parent
as Visual;
4196
if (current.
_parent
!= null && currentParent == null)
4198
((Visual3D)current.
_parent
).SetFlagsToRoot(value, flag);
4225
DependencyObject parent = current.
_parent
;
4539
g = gAsVisual.
_parent
;
5241
if (e.
_parent
== null)
5247
Visual parentAsVisual = e.
_parent
as Visual;
5252
Visual3D.PropagateFlags((Visual3D)e.
_parent
, flags, proxyFlags);
System\Windows\Media\VisualCollection.cs (14)
350
if ((value.
_parent
!= null) // Only a visual that isn't a visual parent or
391
Debug.Assert(value.
_parent
== null);
419
Visual oldParent = VisualTreeHelper.GetContainingVisual2D(child.
_parent
);
451
((visual.
_parent
!= null) // Only visuals that are not connected to another tree
499
else if (visual.
_parent
!= _owner)
534
if (visual.
_parent
!= _owner)
542
Debug.Assert(visual.
_parent
!= null);
637
return (visual.
_parent
== _owner);
657
Debug.Assert(_items[i].
_parent
== _owner);
698
((visual.
_parent
!= null) // Only visuals that are not connected to another tree
820
if (visual.
_parent
== _owner)
825
Debug.Assert(visual.
_parent
!= null);
826
Debug.Assert(destination == null || destination.
_parent
== visual.
_parent
);
System\Windows\Media3D\Viewport2DVisual3D.cs (3)
361
if (child.
_parent
!= null)
387
if (child == null || child.
_parent
== null)
392
if (child.
_parent
!= this)
System\Windows\UIElement.cs (7)
1437
if (
_parent
!= null)
1439
DependencyObject parent =
_parent
;
1543
parent = InputElement.GetContainingUIElement(
_parent
);
1557
parent = InputElement.GetContainingUIElement(
_parent
);
3648
parent = InputElement.GetContainingUIElement(uie.
_parent
);
3752
DependencyObject parent = InputElement.GetContainingUIElement(uie.
_parent
);
3862
DependencyObject parent = InputElement.GetContainingUIElement(
_parent
);