12 references to GetContainingVisual2D
PresentationCore (12)
MS\Internal\Media3D\GeneralTransform2DTo3DTo2D.cs (1)
126Viewport3DVisual viewport3D = (Viewport3DVisual)VisualTreeHelper.GetContainingVisual2D(visual3D);
System\Windows\Automation\Peers\UIElement3DAutomationPeer.cs (1)
198Rect rectRoot = PointUtil.ElementToRoot(rectElement, VisualTreeHelper.GetContainingVisual2D(_owner), presentationSource);
System\Windows\Input\InputElement.cs (2)
234vFrom = VisualTreeHelper.GetContainingVisual2D(vFromAsDO); 309vToAsVisual = VisualTreeHelper.GetContainingVisual2D(vTo);
System\Windows\Input\Stylus\Common\StylusDevice.cs (2)
353Visual visualFirstAncestor = VisualTreeHelper.GetContainingVisual2D(InputElement.GetContainingVisual(doRelativeTo)); 354Visual visualRoot = VisualTreeHelper.GetContainingVisual2D(InputElement.GetRootVisual(doRelativeTo));
System\Windows\Input\Stylus\Common\StylusPlugInCollection.cs (1)
269Visual root = VisualTreeHelper.GetContainingVisual2D(InputElement.GetRootVisual(_element));
System\Windows\Input\Stylus\Common\StylusTouchDeviceBase.cs (1)
129Visual containingVisual2D = VisualTreeHelper.GetContainingVisual2D(containingVisual);
System\Windows\InterOp\HwndMouseInputProvider.cs (1)
299GeneralTransform gDown = inputSource.RootVisual.TransformToDescendant(VisualTreeHelper.GetContainingVisual2D(containingVisual));
System\Windows\Media\Visual.cs (1)
4586g = VisualTreeHelper.GetContainingVisual2D(gAsVisual3D);
System\Windows\Media\VisualCollection.cs (1)
433Visual oldParent = VisualTreeHelper.GetContainingVisual2D(child._parent);
System\Windows\Media3D\Visual3D.cs (1)
812Viewport3DVisual viewport3DVisual = (Viewport3DVisual)VisualTreeHelper.GetContainingVisual2D(this);