12 references to GetContainingVisual2D
PresentationCore (12)
MS\Internal\Media3D\GeneralTransform2DTo3DTo2D.cs (1)
110Viewport3DVisual viewport3D = (Viewport3DVisual)VisualTreeHelper.GetContainingVisual2D(visual3D);
System\Windows\Automation\Peers\UIElement3DAutomationPeer.cs (1)
190Rect rectRoot = PointUtil.ElementToRoot(rectElement, VisualTreeHelper.GetContainingVisual2D(_owner), presentationSource);
System\Windows\Input\InputElement.cs (2)
230vFrom = VisualTreeHelper.GetContainingVisual2D(vFromAsDO); 305vToAsVisual = VisualTreeHelper.GetContainingVisual2D(vTo);
System\Windows\Input\Stylus\Common\StylusDevice.cs (2)
339Visual visualFirstAncestor = VisualTreeHelper.GetContainingVisual2D(InputElement.GetContainingVisual(doRelativeTo)); 340Visual visualRoot = VisualTreeHelper.GetContainingVisual2D(InputElement.GetRootVisual(doRelativeTo));
System\Windows\Input\Stylus\Common\StylusPlugInCollection.cs (1)
260Visual root = VisualTreeHelper.GetContainingVisual2D(InputElement.GetRootVisual(_element));
System\Windows\Input\Stylus\Common\StylusTouchDeviceBase.cs (1)
127Visual containingVisual2D = VisualTreeHelper.GetContainingVisual2D(containingVisual);
System\Windows\InterOp\HwndMouseInputProvider.cs (1)
295GeneralTransform gDown = inputSource.RootVisual.TransformToDescendant(VisualTreeHelper.GetContainingVisual2D(containingVisual));
System\Windows\Media\Visual.cs (1)
4570g = VisualTreeHelper.GetContainingVisual2D(gAsVisual3D);
System\Windows\Media\VisualCollection.cs (1)
419Visual oldParent = VisualTreeHelper.GetContainingVisual2D(child._parent);
System\Windows\Media3D\Visual3D.cs (1)
804Viewport3DVisual viewport3DVisual = (Viewport3DVisual)VisualTreeHelper.GetContainingVisual2D(this);