4 writes to _parent
PresentationCore (4)
System\Windows\Media\Visual.cs (2)
2592child._parent = this; 2683child._parent = null;
System\Windows\Media3D\Viewport2DVisual3D.cs (2)
368child._parent = this; 400child._parent = null;
42 references to _parent
PresentationCore (42)
MS\Internal\Media3D\GeneralTransform2DTo3DTo2D.cs (1)
86Visual 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; 5241if (e._parent == null) 5247Visual parentAsVisual = e._parent as Visual; 5252Visual3D.PropagateFlags((Visual3D)e._parent, flags, proxyFlags);
System\Windows\Media\VisualCollection.cs (14)
350if ((value._parent != null) // Only a visual that isn't a visual parent or 391Debug.Assert(value._parent == null); 419Visual oldParent = VisualTreeHelper.GetContainingVisual2D(child._parent); 451((visual._parent != null) // Only visuals that are not connected to another tree 499else if (visual._parent != _owner) 534if (visual._parent != _owner) 542Debug.Assert(visual._parent != null); 637return (visual._parent == _owner); 657Debug.Assert(_items[i]._parent == _owner); 698((visual._parent != null) // Only visuals that are not connected to another tree 820if (visual._parent == _owner) 825Debug.Assert(visual._parent != null); 826Debug.Assert(destination == null || destination._parent == visual._parent);
System\Windows\Media3D\Viewport2DVisual3D.cs (3)
361if (child._parent != null) 387if (child == null || child._parent == null) 392if (child._parent != this)
System\Windows\UIElement.cs (7)
1437if (_parent != null) 1439DependencyObject parent = _parent; 1543parent = InputElement.GetContainingUIElement(_parent); 1557parent = InputElement.GetContainingUIElement(_parent); 3648parent = InputElement.GetContainingUIElement(uie._parent); 3752DependencyObject parent = InputElement.GetContainingUIElement(uie._parent); 3862DependencyObject parent = InputElement.GetContainingUIElement(_parent);