4 writes to _parent
PresentationCore (4)
System\Windows\Media\Visual.cs (2)
2592child._parent = this; 2683child._parent = null;
System\Windows\Media3D\Viewport2DVisual3D.cs (2)
370child._parent = this; 402child._parent = null;
42 references to _parent
PresentationCore (42)
MS\Internal\Media3D\GeneralTransform2DTo3DTo2D.cs (1)
88Visual descendentVisual = (fromVisual == visual3Dchild._parent) ? visual3Dchild : fromVisual;
System\Windows\Media\CompositionTarget.cs (1)
456(visual._parent != null
System\Windows\Media\Visual.cs (16)
945if ( (_parent == null 2580if (child._parent != null) 2644if (child == null || child._parent == null) 2649if (child._parent != this) 2769return _parent; 3956Debug.Assert(_parent != null, "If oldParent is null, current parent should != null."); 3961_parent, 4157current = currentAsVisual._parent; 4192Visual currentParent = current._parent as Visual; 4196if (current._parent != null && currentParent == null) 4198((Visual3D)current._parent).SetFlagsToRoot(value, flag); 4225DependencyObject parent = current._parent; 4539g = gAsVisual._parent; 5235if (e._parent == null) 5241Visual parentAsVisual = e._parent as Visual; 5246Visual3D.PropagateFlags((Visual3D)e._parent, flags, proxyFlags);
System\Windows\Media\VisualCollection.cs (14)
340if ((value._parent != null) // Only a visual that isn't a visual parent or 381Debug.Assert(value._parent == null); 409Visual oldParent = VisualTreeHelper.GetContainingVisual2D(child._parent); 441((visual._parent != null) // Only visuals that are not connected to another tree 489else if (visual._parent != _owner) 524if (visual._parent != _owner) 532Debug.Assert(visual._parent != null); 627return (visual._parent == _owner); 647Debug.Assert(_items[i]._parent == _owner); 688((visual._parent != null) // Only visuals that are not connected to another tree 810if (visual._parent == _owner) 815Debug.Assert(visual._parent != null); 816Debug.Assert(destination == null || destination._parent == visual._parent);
System\Windows\Media3D\Viewport2DVisual3D.cs (3)
363if (child._parent != null) 389if (child == null || child._parent == null) 394if (child._parent != this)
System\Windows\UIElement.cs (7)
1429if (_parent != null) 1431DependencyObject parent = _parent; 1535parent = InputElement.GetContainingUIElement(_parent); 1549parent = InputElement.GetContainingUIElement(_parent); 3634parent = InputElement.GetContainingUIElement(uie._parent); 3737DependencyObject parent = InputElement.GetContainingUIElement(uie._parent); 3847DependencyObject parent = InputElement.GetContainingUIElement(_parent);