116 references to InputElement
PresentationCore (116)
MS\Internal\DeferredElementTreeState.cs (1)
67if (parent == null || InputElement.IsValid(parent))
MS\Internal\UIElementHelper.cs (3)
109parent = InputElement.GetContainingUIElement(myParent) as DependencyObject; 118parent = InputElement.GetContainingInputElement(childAsUIElement.GetUIParentCore()) as DependencyObject; 125parent = InputElement.GetContainingInputElement(childAsUIElement3D.GetUIParentCore()) as DependencyObject;
System\Windows\ContentElement.cs (2)
73e = InputElement.GetContainingInputElement(_parent) as DependencyObject; 80e = InputElement.GetContainingInputElement(doParent) as DependencyObject;
System\Windows\DragDrop.cs (1)
1372targetPoint = InputElement.TranslatePoint(targetPoint, source.RootVisual, target);
System\Windows\DragEventArgs.cs (1)
103dropPoint = InputElement.TranslatePoint(_dropPoint, _target, (DependencyObject)relativeTo);
System\Windows\Input\AccessKeyManager.cs (2)
462DependencyObject containingVisual = InputElement.GetContainingVisual(elementDO); 496DependencyObject uielement = InputElement.GetContainingUIElement((DependencyObject)element);
System\Windows\Input\Command\RoutedCommand.cs (3)
132if ((target != null) && !InputElement.IsValid(target)) 168if ((target != null) && !InputElement.IsValid(target)) 314if ((elem != null) && InputElement.IsValid(elem))
System\Windows\Input\FocusChangedEventArgs.cs (2)
34if (oldFocus != null && !InputElement.IsValid(oldFocus)) 37if (newFocus != null && !InputElement.IsValid(newFocus))
System\Windows\Input\InputElement.cs (4)
226DependencyObject vFromAsDO = InputElement.GetContainingVisual(from); 227Visual rootFrom = InputElement.GetRootVisual(from) as Visual; 262DependencyObject vTo = InputElement.GetContainingVisual(to); 263Visual rootTo = InputElement.GetRootVisual(to) as Visual;
System\Windows\Input\InputManager.cs (1)
752if(eventSource == null || !InputElement.IsValid(eventSource as IInputElement))
System\Windows\Input\InputMethod.cs (1)
1612DependencyObject containingVisual = InputElement.GetContainingVisual(o);
System\Windows\Input\KeyboardDevice.cs (5)
130if(!InputElement.IsValid(element)) 169DependencyObject containingVisual = InputElement.GetContainingVisual(focus); 383_focusRootVisual = InputElement.GetRootVisual(focus); 601DependencyObject visualContainer = InputElement.GetContainingVisual(element); 1013if(InputElement.GetRootVisual (_focus as DependencyObject) != _focusRootVisual)
System\Windows\Input\Mouse.cs (1)
477PresentationSource inputSource = PresentationSource.FromDependencyObject(InputElement.GetContainingVisual(relativeTo as DependencyObject));
System\Windows\Input\MouseDevice.cs (20)
309if (eltDO != null && !InputElement.IsValid(element)) 363DependencyObject containingVisual = InputElement.GetContainingVisual(eltDO); 559if (relativeTo != null && !InputElement.IsValid(relativeTo)) 569DependencyObject containingVisual = InputElement.GetContainingVisual(dependencyObject); 606ptRelative = InputElement.TranslatePoint(ptRoot, relativePresentationSource.RootVisual, (DependencyObject)relativeTo); 737DependencyObject containingVisual = InputElement.GetContainingVisual(dependencyObject); 1476Point ptRelativeToOver = InputElement.TranslatePoint(ptRoot, rawMouseInputReport.InputSource.RootVisual, (DependencyObject)_mouseOver, out mouseOverAvailable); 1516if (!InputElement.IsValid(mouseOver)) 1518mouseOver = InputElement.GetContainingInputElement(mouseOver as DependencyObject); 1520if ((rawMouseOver != null) && !InputElement.IsValid(rawMouseOver)) 1522rawMouseOver = InputElement.GetContainingInputElement(rawMouseOver as DependencyObject); 1558IInputElement mouseCapture = InputElement.GetContainingInputElement(_mouseCapture as DependencyObject); 1568if (mouseOver != null && !InputElement.IsValid(mouseOver) ) 1569mouseOver = InputElement.GetContainingInputElement(mouseOver as DependencyObject); 1591ieTest = InputElement.GetContainingInputElement(eTest.GetUIParent(true)); 1599ieTest = InputElement.GetContainingInputElement(ceTest.GetUIParent(true)); 1605ieTest = InputElement.GetContainingInputElement(e3DTest.GetUIParent(true)); 1637else if (!InputElement.IsValid(rawMouseOver)) 1639rawMouseOver = InputElement.GetContainingInputElement(rawMouseOver as DependencyObject); 1658ptRelativeToOver = InputElement.TranslatePoint(ptRoot, rawMouseInputReport.InputSource.RootVisual, (DependencyObject)mouseOver);
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)
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 (12)
559if (doStylusCapture != null && !InputElement.IsValid(element)) 713if (relativeTo != null && !InputElement.IsValid(relativeTo)) 723DependencyObject containingVisual = InputElement.GetContainingVisual(dependencyObject); 749Point ptRelative = InputElement.TranslatePoint(ptRoot, relativePresentationSource.RootVisual, (DependencyObject)relativeTo); 916if (!InputElement.IsValid(stylusOver)) 917stylusOver = InputElement.GetContainingInputElement(stylusOver as DependencyObject); 927IInputElement stylusCapture = InputElement.GetContainingInputElement(_stylusCapture as DependencyObject); 938if (stylusOver != null && !InputElement.IsValid(stylusOver)) 939stylusOver = InputElement.GetContainingInputElement(stylusOver as DependencyObject); 960ieTest = InputElement.GetContainingInputElement(eTest.GetUIParent(true)); 966ieTest = InputElement.GetContainingInputElement(ceTest.GetUIParent(true)); 1033UIElement uiElement = InputElement.GetContainingUIElement(stylusCapture as DependencyObject) as UIElement;
System\Windows\Input\Stylus\Pointer\PointerStylusPlugInManager.cs (2)
262UIElement newTarget = InputElement.GetContainingUIElement(rawStylusInputReport.StylusDevice.DirectlyOver as DependencyObject) as UIElement; 376UIElement uiElement = InputElement.GetContainingUIElement(directlyOver as DependencyObject) as UIElement;
System\Windows\Input\Stylus\Wisp\PenContexts.cs (1)
366UIElement uiElement = InputElement.GetContainingUIElement(directlyOver as DependencyObject) as UIElement;
System\Windows\Input\Stylus\Wisp\WispLogic.cs (2)
2450DependencyObject containingVisual = InputElement.GetContainingVisual(dependencyObject); 2658UIElement newTarget = InputElement.GetContainingUIElement(rawStylusInputReport.StylusDevice.DirectlyOver as DependencyObject) as UIElement;
System\Windows\Input\Stylus\Wisp\WispStylusDevice.cs (14)
247if (doStylusCapture != null && !InputElement.IsValid(element)) 588UIElement uiElement = InputElement.GetContainingUIElement(stylusCapture as DependencyObject) as UIElement; 980if (!InputElement.IsValid(stylusOver)) 981stylusOver = InputElement.GetContainingInputElement(stylusOver as DependencyObject); 992IInputElement stylusCapture = InputElement.GetContainingInputElement(_stylusCapture as DependencyObject); 1003if (stylusOver != null && !InputElement.IsValid(stylusOver)) 1004stylusOver = InputElement.GetContainingInputElement(stylusOver as DependencyObject); 1025ieTest = InputElement.GetContainingInputElement(eTest.GetUIParent(true)); 1031ieTest = InputElement.GetContainingInputElement(ceTest.GetUIParent(true)); 1161if (relativeTo != null && !InputElement.IsValid(relativeTo)) 1171DependencyObject containingVisual = InputElement.GetContainingVisual(dependencyObject); 1195Point ptRelative = InputElement.TranslatePoint(ptRoot, relativePresentationSource.RootVisual, (DependencyObject)relativeTo); 1512DependencyObject containingVisual = InputElement.GetContainingVisual(_stylusCapture as DependencyObject); 1719DependencyObject mouseCapturedVisual = InputElement.GetContainingVisual((DependencyObject)mouseCaptured);
System\Windows\Input\TouchDevice.cs (8)
198IInputElement capture = InputElement.GetContainingInputElement(_captured as DependencyObject); 226ieTest = InputElement.GetContainingInputElement(eTest.GetUIParent(true)); 234ieTest = InputElement.GetContainingInputElement(ceTest.GetUIParent(true)); 239ieTest = InputElement.GetContainingInputElement(e3DTest.GetUIParent(true)); 267if ((element != null) && !InputElement.IsValid(element)) 269element = InputElement.GetContainingInputElement(element as DependencyObject); 557DependencyObject containingVisual = InputElement.GetContainingVisual(_captured as DependencyObject); 1069UIElement element = InputElement.GetContainingUIElement(_directlyOver as DependencyObject) as UIElement;
System\Windows\InterOp\HwndMouseInputProvider.cs (1)
217DependencyObject containingVisual = InputElement.GetContainingVisual(relativeTo as DependencyObject);
System\Windows\PresentationSource.cs (3)
128if (!InputElement.IsValid(element)) 194if (!InputElement.IsValid(e)) 691DependencyObject v = InputElement.GetRootVisual(o, enable2DTo3DTransition);
System\Windows\UIElement.cs (13)
1459parent = InputElement.GetContainingUIElement(parentAsVisual); 1474parent = InputElement.GetContainingUIElement(parentAsVisual3D); 1509parent = InputElement.GetContainingUIElement(oldParent); 1548parent = InputElement.GetContainingUIElement(_parent); 1562parent = InputElement.GetContainingUIElement(_parent); 1576parent = InputElement.GetContainingUIElement(e.OldParent); 1615parent = InputElement.GetContainingUIElement(myParent, true); 1981return InputElement.TranslatePoint(point, this, relativeTo); 2062DependencyObject containingElement = InputElement.GetContainingUIElement(candidate); 2066pt = InputElement.TranslatePoint(pt, this, candidate); 3653parent = InputElement.GetContainingUIElement(uie._parent); 3757DependencyObject parent = InputElement.GetContainingUIElement(uie._parent); 3867DependencyObject parent = InputElement.GetContainingUIElement(_parent);
System\Windows\UIElement3D.cs (8)
178parent = InputElement.GetContainingUIElement(parentAsVisual); 211parent = InputElement.GetContainingUIElement(oldParent); 250parent = InputElement.GetContainingUIElement(InternalVisualParent); 264parent = InputElement.GetContainingUIElement(InternalVisualParent); 278parent = InputElement.GetContainingUIElement(e.OldParent); 885parent = InputElement.GetContainingUIElement(uie.InternalVisualParent); 987DependencyObject parent = InputElement.GetContainingUIElement(uie.InternalVisualParent); 1088DependencyObject parent = InputElement.GetContainingUIElement(InternalVisualParent);