23 references to GetContainingVisual
PresentationCore (23)
System\Windows\Input\AccessKeyManager.cs (1)
449DependencyObject containingVisual = InputElement.GetContainingVisual(elementDO);
System\Windows\Input\InputElement.cs (5)
154v = GetContainingVisual(parent); 161v = GetContainingVisual(parent); 187DependencyObject rootVisual = GetContainingVisual(o); 221DependencyObject vFromAsDO = InputElement.GetContainingVisual(from); 257DependencyObject vTo = InputElement.GetContainingVisual(to);
System\Windows\Input\InputMethod.cs (1)
1598DependencyObject containingVisual = InputElement.GetContainingVisual(o);
System\Windows\Input\KeyboardDevice.cs (2)
156DependencyObject containingVisual = InputElement.GetContainingVisual(focus); 600DependencyObject visualContainer = InputElement.GetContainingVisual(element);
System\Windows\Input\Mouse.cs (1)
468PresentationSource inputSource = PresentationSource.FromDependencyObject(InputElement.GetContainingVisual(relativeTo as DependencyObject));
System\Windows\Input\MouseDevice.cs (3)
348DependencyObject containingVisual = InputElement.GetContainingVisual(eltDO); 554DependencyObject containingVisual = InputElement.GetContainingVisual(dependencyObject); 722DependencyObject containingVisual = InputElement.GetContainingVisual(dependencyObject);
System\Windows\Input\Stylus\Common\StylusDevice.cs (1)
338Visual visualFirstAncestor = VisualTreeHelper.GetContainingVisual2D(InputElement.GetContainingVisual(doRelativeTo));
System\Windows\Input\Stylus\Common\StylusTouchDeviceBase.cs (1)
121DependencyObject containingVisual = InputElement.GetContainingVisual(relativeTo as DependencyObject);
System\Windows\Input\Stylus\Pointer\PointerLogic.cs (1)
800DependencyObject containingVisual = InputElement.GetContainingVisual(dependencyObject);
System\Windows\Input\Stylus\Pointer\PointerStylusDevice.cs (1)
716DependencyObject containingVisual = InputElement.GetContainingVisual(dependencyObject);
System\Windows\Input\Stylus\Wisp\WispLogic.cs (1)
2453DependencyObject containingVisual = InputElement.GetContainingVisual(dependencyObject);
System\Windows\Input\Stylus\Wisp\WispStylusDevice.cs (3)
1170DependencyObject containingVisual = InputElement.GetContainingVisual(dependencyObject); 1511DependencyObject containingVisual = InputElement.GetContainingVisual(_stylusCapture as DependencyObject); 1720DependencyObject mouseCapturedVisual = InputElement.GetContainingVisual((DependencyObject)mouseCaptured);
System\Windows\Input\TouchDevice.cs (1)
544DependencyObject containingVisual = InputElement.GetContainingVisual(_captured as DependencyObject);
System\Windows\InterOp\HwndMouseInputProvider.cs (1)
212DependencyObject containingVisual = InputElement.GetContainingVisual(relativeTo as DependencyObject);