4 writes to _parent
PresentationCore (4)
System\Windows\Media\Visual.cs (2)
2608child._parent = this; 2699child._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)
102Visual descendentVisual = (fromVisual == visual3Dchild._parent) ? visual3Dchild : fromVisual;
System\Windows\Media\CompositionTarget.cs (1)
478(visual._parent != null
System\Windows\Media\Visual.cs (16)
961if ( (_parent == null 2596if (child._parent != null) 2660if (child == null || child._parent == null) 2665if (child._parent != this) 2785return _parent; 3972Debug.Assert(_parent != null, "If oldParent is null, current parent should != null."); 3977_parent, 4173current = currentAsVisual._parent; 4208Visual currentParent = current._parent as Visual; 4212if (current._parent != null && currentParent == null) 4214((Visual3D)current._parent).SetFlagsToRoot(value, flag); 4241DependencyObject parent = current._parent; 4555g = gAsVisual._parent; 5257if (e._parent == null) 5263Visual parentAsVisual = e._parent as Visual; 5268Visual3D.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); 3653parent = InputElement.GetContainingUIElement(uie._parent); 3757DependencyObject parent = InputElement.GetContainingUIElement(uie._parent); 3867DependencyObject parent = InputElement.GetContainingUIElement(_parent);