116 references to InputElement
PresentationCore (116)
MS\Internal\DeferredElementTreeState.cs (1)
65if (parent == null || InputElement.IsValid(parent))
MS\Internal\UIElementHelper.cs (3)
106parent = InputElement.GetContainingUIElement(myParent) as DependencyObject; 115parent = InputElement.GetContainingInputElement(childAsUIElement.GetUIParentCore()) as DependencyObject; 122parent = InputElement.GetContainingInputElement(childAsUIElement3D.GetUIParentCore()) as DependencyObject;
System\Windows\ContentElement.cs (2)
61e = InputElement.GetContainingInputElement(_parent) as DependencyObject; 68e = InputElement.GetContainingInputElement(doParent) as DependencyObject;
System\Windows\DragDrop.cs (1)
1364targetPoint = InputElement.TranslatePoint(targetPoint, source.RootVisual, target);
System\Windows\DragEventArgs.cs (1)
89dropPoint = InputElement.TranslatePoint(_dropPoint, _target, (DependencyObject)relativeTo);
System\Windows\Input\AccessKeyManager.cs (2)
449DependencyObject containingVisual = InputElement.GetContainingVisual(elementDO); 483DependencyObject uielement = InputElement.GetContainingUIElement((DependencyObject)element);
System\Windows\Input\Command\RoutedCommand.cs (3)
120if ((target != null) && !InputElement.IsValid(target)) 156if ((target != null) && !InputElement.IsValid(target)) 302if ((elem != null) && InputElement.IsValid(elem))
System\Windows\Input\FocusChangedEventArgs.cs (2)
28if (oldFocus != null && !InputElement.IsValid(oldFocus)) 31if (newFocus != null && !InputElement.IsValid(newFocus))
System\Windows\Input\InputElement.cs (4)
221DependencyObject vFromAsDO = InputElement.GetContainingVisual(from); 222Visual rootFrom = InputElement.GetRootVisual(from) as Visual; 257DependencyObject vTo = InputElement.GetContainingVisual(to); 258Visual rootTo = InputElement.GetRootVisual(to) as Visual;
System\Windows\Input\InputManager.cs (1)
743if(eventSource == null || !InputElement.IsValid(eventSource as IInputElement))
System\Windows\Input\InputMethod.cs (1)
1598DependencyObject containingVisual = InputElement.GetContainingVisual(o);
System\Windows\Input\KeyboardDevice.cs (5)
118if(!InputElement.IsValid(element)) 156DependencyObject containingVisual = InputElement.GetContainingVisual(focus); 378_focusRootVisual = InputElement.GetRootVisual(focus); 600DependencyObject visualContainer = InputElement.GetContainingVisual(element); 1009if(InputElement.GetRootVisual (_focus as DependencyObject) != _focusRootVisual)
System\Windows\Input\Mouse.cs (1)
468PresentationSource inputSource = PresentationSource.FromDependencyObject(InputElement.GetContainingVisual(relativeTo as DependencyObject));
System\Windows\Input\MouseDevice.cs (20)
297if (eltDO != null && !InputElement.IsValid(element)) 348DependencyObject containingVisual = InputElement.GetContainingVisual(eltDO); 544if (relativeTo != null && !InputElement.IsValid(relativeTo)) 554DependencyObject containingVisual = InputElement.GetContainingVisual(dependencyObject); 591ptRelative = InputElement.TranslatePoint(ptRoot, relativePresentationSource.RootVisual, (DependencyObject)relativeTo); 722DependencyObject containingVisual = InputElement.GetContainingVisual(dependencyObject); 1478Point ptRelativeToOver = InputElement.TranslatePoint(ptRoot, rawMouseInputReport.InputSource.RootVisual, (DependencyObject)_mouseOver, out mouseOverAvailable); 1518if (!InputElement.IsValid(mouseOver)) 1520mouseOver = InputElement.GetContainingInputElement(mouseOver as DependencyObject); 1522if ((rawMouseOver != null) && !InputElement.IsValid(rawMouseOver)) 1524rawMouseOver = InputElement.GetContainingInputElement(rawMouseOver as DependencyObject); 1560IInputElement mouseCapture = InputElement.GetContainingInputElement(_mouseCapture as DependencyObject); 1570if (mouseOver != null && !InputElement.IsValid(mouseOver) ) 1571mouseOver = InputElement.GetContainingInputElement(mouseOver as DependencyObject); 1593ieTest = InputElement.GetContainingInputElement(eTest.GetUIParent(true)); 1601ieTest = InputElement.GetContainingInputElement(ceTest.GetUIParent(true)); 1607ieTest = InputElement.GetContainingInputElement(e3DTest.GetUIParent(true)); 1639else if (!InputElement.IsValid(rawMouseOver)) 1641rawMouseOver = InputElement.GetContainingInputElement(rawMouseOver as DependencyObject); 1660ptRelativeToOver = InputElement.TranslatePoint(ptRoot, rawMouseInputReport.InputSource.RootVisual, (DependencyObject)mouseOver);
System\Windows\Input\Stylus\Common\StylusDevice.cs (2)
338Visual visualFirstAncestor = VisualTreeHelper.GetContainingVisual2D(InputElement.GetContainingVisual(doRelativeTo)); 339Visual visualRoot = VisualTreeHelper.GetContainingVisual2D(InputElement.GetRootVisual(doRelativeTo));
System\Windows\Input\Stylus\Common\StylusPlugInCollection.cs (1)
259Visual root = VisualTreeHelper.GetContainingVisual2D(InputElement.GetRootVisual(_element));
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 (12)
550if (doStylusCapture != null && !InputElement.IsValid(element)) 706if (relativeTo != null && !InputElement.IsValid(relativeTo)) 716DependencyObject containingVisual = InputElement.GetContainingVisual(dependencyObject); 742Point ptRelative = InputElement.TranslatePoint(ptRoot, relativePresentationSource.RootVisual, (DependencyObject)relativeTo); 909if (!InputElement.IsValid(stylusOver)) 910stylusOver = InputElement.GetContainingInputElement(stylusOver as DependencyObject); 920IInputElement stylusCapture = InputElement.GetContainingInputElement(_stylusCapture as DependencyObject); 931if (stylusOver != null && !InputElement.IsValid(stylusOver)) 932stylusOver = InputElement.GetContainingInputElement(stylusOver as DependencyObject); 953ieTest = InputElement.GetContainingInputElement(eTest.GetUIParent(true)); 959ieTest = InputElement.GetContainingInputElement(ceTest.GetUIParent(true)); 1026UIElement uiElement = InputElement.GetContainingUIElement(stylusCapture as DependencyObject) as UIElement;
System\Windows\Input\Stylus\Pointer\PointerStylusPlugInManager.cs (2)
249UIElement newTarget = InputElement.GetContainingUIElement(rawStylusInputReport.StylusDevice.DirectlyOver as DependencyObject) as UIElement; 363UIElement uiElement = InputElement.GetContainingUIElement(directlyOver as DependencyObject) as UIElement;
System\Windows\Input\Stylus\Wisp\PenContexts.cs (1)
343UIElement uiElement = InputElement.GetContainingUIElement(directlyOver as DependencyObject) as UIElement;
System\Windows\Input\Stylus\Wisp\WispLogic.cs (2)
2453DependencyObject containingVisual = InputElement.GetContainingVisual(dependencyObject); 2663UIElement newTarget = InputElement.GetContainingUIElement(rawStylusInputReport.StylusDevice.DirectlyOver as DependencyObject) as UIElement;
System\Windows\Input\Stylus\Wisp\WispStylusDevice.cs (14)
243if (doStylusCapture != null && !InputElement.IsValid(element)) 583UIElement uiElement = InputElement.GetContainingUIElement(stylusCapture as DependencyObject) as UIElement; 979if (!InputElement.IsValid(stylusOver)) 980stylusOver = InputElement.GetContainingInputElement(stylusOver as DependencyObject); 991IInputElement stylusCapture = InputElement.GetContainingInputElement(_stylusCapture as DependencyObject); 1002if (stylusOver != null && !InputElement.IsValid(stylusOver)) 1003stylusOver = InputElement.GetContainingInputElement(stylusOver as DependencyObject); 1024ieTest = InputElement.GetContainingInputElement(eTest.GetUIParent(true)); 1030ieTest = InputElement.GetContainingInputElement(ceTest.GetUIParent(true)); 1160if (relativeTo != null && !InputElement.IsValid(relativeTo)) 1170DependencyObject containingVisual = InputElement.GetContainingVisual(dependencyObject); 1194Point ptRelative = InputElement.TranslatePoint(ptRoot, relativePresentationSource.RootVisual, (DependencyObject)relativeTo); 1511DependencyObject containingVisual = InputElement.GetContainingVisual(_stylusCapture as DependencyObject); 1720DependencyObject mouseCapturedVisual = InputElement.GetContainingVisual((DependencyObject)mouseCaptured);
System\Windows\Input\TouchDevice.cs (8)
185IInputElement capture = InputElement.GetContainingInputElement(_captured as DependencyObject); 213ieTest = InputElement.GetContainingInputElement(eTest.GetUIParent(true)); 221ieTest = InputElement.GetContainingInputElement(ceTest.GetUIParent(true)); 226ieTest = InputElement.GetContainingInputElement(e3DTest.GetUIParent(true)); 254if ((element != null) && !InputElement.IsValid(element)) 256element = InputElement.GetContainingInputElement(element as DependencyObject); 544DependencyObject containingVisual = InputElement.GetContainingVisual(_captured as DependencyObject); 1058UIElement element = InputElement.GetContainingUIElement(_directlyOver as DependencyObject) as UIElement;
System\Windows\InterOp\HwndMouseInputProvider.cs (1)
212DependencyObject containingVisual = InputElement.GetContainingVisual(relativeTo as DependencyObject);
System\Windows\PresentationSource.cs (3)
117if (!InputElement.IsValid(element)) 183if (!InputElement.IsValid(e)) 661DependencyObject v = InputElement.GetRootVisual(o, enable2DTo3DTransition);
System\Windows\UIElement.cs (13)
1445parent = InputElement.GetContainingUIElement(parentAsVisual); 1460parent = InputElement.GetContainingUIElement(parentAsVisual3D); 1495parent = InputElement.GetContainingUIElement(oldParent); 1534parent = InputElement.GetContainingUIElement(_parent); 1548parent = InputElement.GetContainingUIElement(_parent); 1562parent = InputElement.GetContainingUIElement(e.OldParent); 1601parent = InputElement.GetContainingUIElement(myParent, true); 1967return InputElement.TranslatePoint(point, this, relativeTo); 2048DependencyObject containingElement = InputElement.GetContainingUIElement(candidate); 2052pt = InputElement.TranslatePoint(pt, this, candidate); 3633parent = InputElement.GetContainingUIElement(uie._parent); 3736DependencyObject parent = InputElement.GetContainingUIElement(uie._parent); 3846DependencyObject parent = InputElement.GetContainingUIElement(_parent);
System\Windows\UIElement3D.cs (8)
162parent = InputElement.GetContainingUIElement(parentAsVisual); 195parent = InputElement.GetContainingUIElement(oldParent); 234parent = InputElement.GetContainingUIElement(InternalVisualParent); 248parent = InputElement.GetContainingUIElement(InternalVisualParent); 262parent = InputElement.GetContainingUIElement(e.OldParent); 869parent = InputElement.GetContainingUIElement(uie.InternalVisualParent); 970DependencyObject parent = InputElement.GetContainingUIElement(uie.InternalVisualParent); 1071DependencyObject parent = InputElement.GetContainingUIElement(InternalVisualParent);