4 writes to _parent
PresentationCore (4)
System\Windows\Media\Visual.cs (2)
2589child._parent = this; 2680child._parent = null;
System\Windows\Media3D\Viewport2DVisual3D.cs (2)
369child._parent = this; 401child._parent = null;
42 references to _parent
PresentationCore (42)
MS\Internal\Media3D\GeneralTransform2DTo3DTo2D.cs (1)
87Visual descendentVisual = (fromVisual == visual3Dchild._parent) ? visual3Dchild : fromVisual;
System\Windows\Media\CompositionTarget.cs (1)
455(visual._parent != null
System\Windows\Media\Visual.cs (16)
942if ( (_parent == null 2577if (child._parent != null) 2641if (child == null || child._parent == null) 2646if (child._parent != this) 2766return _parent; 3953Debug.Assert(_parent != null, "If oldParent is null, current parent should != null."); 3958_parent, 4154current = currentAsVisual._parent; 4189Visual currentParent = current._parent as Visual; 4193if (current._parent != null && currentParent == null) 4195((Visual3D)current._parent).SetFlagsToRoot(value, flag); 4222DependencyObject parent = current._parent; 4536g = gAsVisual._parent; 5232if (e._parent == null) 5238Visual parentAsVisual = e._parent as Visual; 5243Visual3D.PropagateFlags((Visual3D)e._parent, flags, proxyFlags);
System\Windows\Media\VisualCollection.cs (14)
339if ((value._parent != null) // Only a visual that isn't a visual parent or 380Debug.Assert(value._parent == null); 408Visual oldParent = VisualTreeHelper.GetContainingVisual2D(child._parent); 440((visual._parent != null) // Only visuals that are not connected to another tree 488else if (visual._parent != _owner) 523if (visual._parent != _owner) 531Debug.Assert(visual._parent != null); 626return (visual._parent == _owner); 646Debug.Assert(_items[i]._parent == _owner); 687((visual._parent != null) // Only visuals that are not connected to another tree 809if (visual._parent == _owner) 814Debug.Assert(visual._parent != null); 815Debug.Assert(destination == null || destination._parent == visual._parent);
System\Windows\Media3D\Viewport2DVisual3D.cs (3)
362if (child._parent != null) 388if (child == null || child._parent == null) 393if (child._parent != this)
System\Windows\UIElement.cs (7)
1428if (_parent != null) 1430DependencyObject parent = _parent; 1534parent = InputElement.GetContainingUIElement(_parent); 1548parent = InputElement.GetContainingUIElement(_parent); 3633parent = InputElement.GetContainingUIElement(uie._parent); 3736DependencyObject parent = InputElement.GetContainingUIElement(uie._parent); 3846DependencyObject parent = InputElement.GetContainingUIElement(_parent);