4 writes to _parent
PresentationCore (4)
System\Windows\Media\Visual.cs (2)
2611child._parent = this; 2702child._parent = null;
System\Windows\Media3D\Viewport2DVisual3D.cs (2)
385child._parent = this; 417child._parent = null;
42 references to _parent
PresentationCore (42)
MS\Internal\Media3D\GeneralTransform2DTo3DTo2D.cs (1)
103Visual descendentVisual = (fromVisual == visual3Dchild._parent) ? visual3Dchild : fromVisual;
System\Windows\Media\CompositionTarget.cs (1)
478(visual._parent != null
System\Windows\Media\Visual.cs (16)
964if ( (_parent == null 2599if (child._parent != null) 2663if (child == null || child._parent == null) 2668if (child._parent != this) 2789return _parent; 3978Debug.Assert(_parent != null, "If oldParent is null, current parent should != null."); 3983_parent, 4179current = currentAsVisual._parent; 4214Visual currentParent = current._parent as Visual; 4218if (current._parent != null && currentParent == null) 4220((Visual3D)current._parent).SetFlagsToRoot(value, flag); 4247DependencyObject parent = current._parent; 4561g = gAsVisual._parent; 5263if (e._parent == null) 5269Visual parentAsVisual = e._parent as Visual; 5274Visual3D.PropagateFlags((Visual3D)e._parent, flags, proxyFlags);
System\Windows\Media\VisualCollection.cs (14)
364if ((value._parent != null) // Only a visual that isn't a visual parent or 405Debug.Assert(value._parent == null); 433Visual oldParent = VisualTreeHelper.GetContainingVisual2D(child._parent); 465((visual._parent != null) // Only visuals that are not connected to another tree 513else if (visual._parent != _owner) 548if (visual._parent != _owner) 556Debug.Assert(visual._parent != null); 651return (visual._parent == _owner); 671Debug.Assert(_items[i]._parent == _owner); 712((visual._parent != null) // Only visuals that are not connected to another tree 834if (visual._parent == _owner) 839Debug.Assert(visual._parent != null); 840Debug.Assert(destination == null || destination._parent == visual._parent);
System\Windows\Media3D\Viewport2DVisual3D.cs (3)
378if (child._parent != null) 404if (child == null || child._parent == null) 409if (child._parent != this)
System\Windows\UIElement.cs (7)
1442if (_parent != null) 1444DependencyObject parent = _parent; 1548parent = InputElement.GetContainingUIElement(_parent); 1562parent = InputElement.GetContainingUIElement(_parent); 3657parent = InputElement.GetContainingUIElement(uie._parent); 3761DependencyObject parent = InputElement.GetContainingUIElement(uie._parent); 3871DependencyObject parent = InputElement.GetContainingUIElement(_parent);