23 references to GetContainingVisual
PresentationCore (23)
System\Windows\Input\AccessKeyManager.cs (1)
450DependencyObject containingVisual = InputElement.GetContainingVisual(elementDO);
System\Windows\Input\InputElement.cs (5)
155v = GetContainingVisual(parent); 162v = GetContainingVisual(parent); 188DependencyObject rootVisual = GetContainingVisual(o); 222DependencyObject vFromAsDO = InputElement.GetContainingVisual(from); 258DependencyObject vTo = InputElement.GetContainingVisual(to);
System\Windows\Input\InputMethod.cs (1)
1598DependencyObject containingVisual = InputElement.GetContainingVisual(o);
System\Windows\Input\KeyboardDevice.cs (2)
160DependencyObject containingVisual = InputElement.GetContainingVisual(focus); 592DependencyObject visualContainer = InputElement.GetContainingVisual(element);
System\Windows\Input\Mouse.cs (1)
469PresentationSource inputSource = PresentationSource.FromDependencyObject(InputElement.GetContainingVisual(relativeTo as DependencyObject));
System\Windows\Input\MouseDevice.cs (3)
354DependencyObject containingVisual = InputElement.GetContainingVisual(eltDO); 560DependencyObject containingVisual = InputElement.GetContainingVisual(dependencyObject); 728DependencyObject containingVisual = InputElement.GetContainingVisual(dependencyObject);
System\Windows\Input\Stylus\Common\StylusDevice.cs (1)
339Visual visualFirstAncestor = VisualTreeHelper.GetContainingVisual2D(InputElement.GetContainingVisual(doRelativeTo));
System\Windows\Input\Stylus\Common\StylusTouchDeviceBase.cs (1)
122DependencyObject containingVisual = InputElement.GetContainingVisual(relativeTo as DependencyObject);
System\Windows\Input\Stylus\Pointer\PointerLogic.cs (1)
799DependencyObject containingVisual = InputElement.GetContainingVisual(dependencyObject);
System\Windows\Input\Stylus\Pointer\PointerStylusDevice.cs (1)
715DependencyObject containingVisual = InputElement.GetContainingVisual(dependencyObject);
System\Windows\Input\Stylus\Wisp\WispLogic.cs (1)
2441DependencyObject containingVisual = InputElement.GetContainingVisual(dependencyObject);
System\Windows\Input\Stylus\Wisp\WispStylusDevice.cs (3)
1168DependencyObject containingVisual = InputElement.GetContainingVisual(dependencyObject); 1509DependencyObject containingVisual = InputElement.GetContainingVisual(_stylusCapture as DependencyObject); 1716DependencyObject mouseCapturedVisual = InputElement.GetContainingVisual((DependencyObject)mouseCaptured);
System\Windows\Input\TouchDevice.cs (1)
545DependencyObject containingVisual = InputElement.GetContainingVisual(_captured as DependencyObject);
System\Windows\InterOp\HwndMouseInputProvider.cs (1)
213DependencyObject containingVisual = InputElement.GetContainingVisual(relativeTo as DependencyObject);