23 references to GetContainingVisual
PresentationCore (23)
System\Windows\Input\AccessKeyManager.cs (1)
462DependencyObject containingVisual = InputElement.GetContainingVisual(elementDO);
System\Windows\Input\InputElement.cs (5)
159v = GetContainingVisual(parent); 166v = GetContainingVisual(parent); 192DependencyObject rootVisual = GetContainingVisual(o); 226DependencyObject vFromAsDO = InputElement.GetContainingVisual(from); 262DependencyObject vTo = InputElement.GetContainingVisual(to);
System\Windows\Input\InputMethod.cs (1)
1612DependencyObject containingVisual = InputElement.GetContainingVisual(o);
System\Windows\Input\KeyboardDevice.cs (2)
169DependencyObject containingVisual = InputElement.GetContainingVisual(focus); 601DependencyObject visualContainer = InputElement.GetContainingVisual(element);
System\Windows\Input\Mouse.cs (1)
477PresentationSource inputSource = PresentationSource.FromDependencyObject(InputElement.GetContainingVisual(relativeTo as DependencyObject));
System\Windows\Input\MouseDevice.cs (3)
363DependencyObject containingVisual = InputElement.GetContainingVisual(eltDO); 569DependencyObject containingVisual = InputElement.GetContainingVisual(dependencyObject); 737DependencyObject containingVisual = InputElement.GetContainingVisual(dependencyObject);
System\Windows\Input\Stylus\Common\StylusDevice.cs (1)
353Visual visualFirstAncestor = VisualTreeHelper.GetContainingVisual2D(InputElement.GetContainingVisual(doRelativeTo));
System\Windows\Input\Stylus\Common\StylusTouchDeviceBase.cs (1)
124DependencyObject containingVisual = InputElement.GetContainingVisual(relativeTo as DependencyObject);
System\Windows\Input\Stylus\Pointer\PointerLogic.cs (1)
816DependencyObject containingVisual = InputElement.GetContainingVisual(dependencyObject);
System\Windows\Input\Stylus\Pointer\PointerStylusDevice.cs (1)
723DependencyObject containingVisual = InputElement.GetContainingVisual(dependencyObject);
System\Windows\Input\Stylus\Wisp\WispLogic.cs (1)
2450DependencyObject containingVisual = InputElement.GetContainingVisual(dependencyObject);
System\Windows\Input\Stylus\Wisp\WispStylusDevice.cs (3)
1171DependencyObject containingVisual = InputElement.GetContainingVisual(dependencyObject); 1512DependencyObject containingVisual = InputElement.GetContainingVisual(_stylusCapture as DependencyObject); 1719DependencyObject mouseCapturedVisual = InputElement.GetContainingVisual((DependencyObject)mouseCaptured);
System\Windows\Input\TouchDevice.cs (1)
557DependencyObject containingVisual = InputElement.GetContainingVisual(_captured as DependencyObject);
System\Windows\InterOp\HwndMouseInputProvider.cs (1)
217DependencyObject containingVisual = InputElement.GetContainingVisual(relativeTo as DependencyObject);