116 references to InputElement
PresentationCore (116)
MS\Internal\DeferredElementTreeState.cs (1)
66if (parent == null || InputElement.IsValid(parent))
MS\Internal\UIElementHelper.cs (3)
107parent = InputElement.GetContainingUIElement(myParent) as DependencyObject; 116parent = InputElement.GetContainingInputElement(childAsUIElement.GetUIParentCore()) as DependencyObject; 123parent = InputElement.GetContainingInputElement(childAsUIElement3D.GetUIParentCore()) as DependencyObject;
System\Windows\ContentElement.cs (2)
62e = InputElement.GetContainingInputElement(_parent) as DependencyObject; 69e = InputElement.GetContainingInputElement(doParent) as DependencyObject;
System\Windows\DragDrop.cs (1)
1365targetPoint = InputElement.TranslatePoint(targetPoint, source.RootVisual, target);
System\Windows\DragEventArgs.cs (1)
90dropPoint = InputElement.TranslatePoint(_dropPoint, _target, (DependencyObject)relativeTo);
System\Windows\Input\AccessKeyManager.cs (2)
450DependencyObject containingVisual = InputElement.GetContainingVisual(elementDO); 484DependencyObject uielement = InputElement.GetContainingUIElement((DependencyObject)element);
System\Windows\Input\Command\RoutedCommand.cs (3)
121if ((target != null) && !InputElement.IsValid(target)) 157if ((target != null) && !InputElement.IsValid(target)) 303if ((elem != null) && InputElement.IsValid(elem))
System\Windows\Input\FocusChangedEventArgs.cs (2)
29if (oldFocus != null && !InputElement.IsValid(oldFocus)) 32if (newFocus != null && !InputElement.IsValid(newFocus))
System\Windows\Input\InputElement.cs (4)
222DependencyObject vFromAsDO = InputElement.GetContainingVisual(from); 223Visual rootFrom = InputElement.GetRootVisual(from) as Visual; 258DependencyObject vTo = InputElement.GetContainingVisual(to); 259Visual rootTo = InputElement.GetRootVisual(to) as Visual;
System\Windows\Input\InputManager.cs (1)
744if(eventSource == null || !InputElement.IsValid(eventSource as IInputElement))
System\Windows\Input\InputMethod.cs (1)
1598DependencyObject containingVisual = InputElement.GetContainingVisual(o);
System\Windows\Input\KeyboardDevice.cs (5)
121if(!InputElement.IsValid(element)) 160DependencyObject containingVisual = InputElement.GetContainingVisual(focus); 374_focusRootVisual = InputElement.GetRootVisual(focus); 592DependencyObject visualContainer = InputElement.GetContainingVisual(element); 1004if(InputElement.GetRootVisual (_focus as DependencyObject) != _focusRootVisual)
System\Windows\Input\Mouse.cs (1)
469PresentationSource inputSource = PresentationSource.FromDependencyObject(InputElement.GetContainingVisual(relativeTo as DependencyObject));
System\Windows\Input\MouseDevice.cs (20)
300if (eltDO != null && !InputElement.IsValid(element)) 354DependencyObject containingVisual = InputElement.GetContainingVisual(eltDO); 550if (relativeTo != null && !InputElement.IsValid(relativeTo)) 560DependencyObject containingVisual = InputElement.GetContainingVisual(dependencyObject); 597ptRelative = InputElement.TranslatePoint(ptRoot, relativePresentationSource.RootVisual, (DependencyObject)relativeTo); 728DependencyObject containingVisual = InputElement.GetContainingVisual(dependencyObject); 1467Point ptRelativeToOver = InputElement.TranslatePoint(ptRoot, rawMouseInputReport.InputSource.RootVisual, (DependencyObject)_mouseOver, out mouseOverAvailable); 1507if (!InputElement.IsValid(mouseOver)) 1509mouseOver = InputElement.GetContainingInputElement(mouseOver as DependencyObject); 1511if ((rawMouseOver != null) && !InputElement.IsValid(rawMouseOver)) 1513rawMouseOver = InputElement.GetContainingInputElement(rawMouseOver as DependencyObject); 1549IInputElement mouseCapture = InputElement.GetContainingInputElement(_mouseCapture as DependencyObject); 1559if (mouseOver != null && !InputElement.IsValid(mouseOver) ) 1560mouseOver = InputElement.GetContainingInputElement(mouseOver as DependencyObject); 1582ieTest = InputElement.GetContainingInputElement(eTest.GetUIParent(true)); 1590ieTest = InputElement.GetContainingInputElement(ceTest.GetUIParent(true)); 1596ieTest = InputElement.GetContainingInputElement(e3DTest.GetUIParent(true)); 1628else if (!InputElement.IsValid(rawMouseOver)) 1630rawMouseOver = InputElement.GetContainingInputElement(rawMouseOver as DependencyObject); 1649ptRelativeToOver = InputElement.TranslatePoint(ptRoot, rawMouseInputReport.InputSource.RootVisual, (DependencyObject)mouseOver);
System\Windows\Input\Stylus\Common\StylusDevice.cs (2)
339Visual visualFirstAncestor = VisualTreeHelper.GetContainingVisual2D(InputElement.GetContainingVisual(doRelativeTo)); 340Visual visualRoot = VisualTreeHelper.GetContainingVisual2D(InputElement.GetRootVisual(doRelativeTo));
System\Windows\Input\Stylus\Common\StylusPlugInCollection.cs (1)
260Visual root = VisualTreeHelper.GetContainingVisual2D(InputElement.GetRootVisual(_element));
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 (12)
551if (doStylusCapture != null && !InputElement.IsValid(element)) 705if (relativeTo != null && !InputElement.IsValid(relativeTo)) 715DependencyObject containingVisual = InputElement.GetContainingVisual(dependencyObject); 741Point ptRelative = InputElement.TranslatePoint(ptRoot, relativePresentationSource.RootVisual, (DependencyObject)relativeTo); 908if (!InputElement.IsValid(stylusOver)) 909stylusOver = InputElement.GetContainingInputElement(stylusOver as DependencyObject); 919IInputElement stylusCapture = InputElement.GetContainingInputElement(_stylusCapture as DependencyObject); 930if (stylusOver != null && !InputElement.IsValid(stylusOver)) 931stylusOver = InputElement.GetContainingInputElement(stylusOver as DependencyObject); 952ieTest = InputElement.GetContainingInputElement(eTest.GetUIParent(true)); 958ieTest = InputElement.GetContainingInputElement(ceTest.GetUIParent(true)); 1025UIElement uiElement = InputElement.GetContainingUIElement(stylusCapture as DependencyObject) as UIElement;
System\Windows\Input\Stylus\Pointer\PointerStylusPlugInManager.cs (2)
250UIElement newTarget = InputElement.GetContainingUIElement(rawStylusInputReport.StylusDevice.DirectlyOver as DependencyObject) as UIElement; 364UIElement uiElement = InputElement.GetContainingUIElement(directlyOver as DependencyObject) as UIElement;
System\Windows\Input\Stylus\Wisp\PenContexts.cs (1)
344UIElement uiElement = InputElement.GetContainingUIElement(directlyOver as DependencyObject) as UIElement;
System\Windows\Input\Stylus\Wisp\WispLogic.cs (2)
2441DependencyObject containingVisual = InputElement.GetContainingVisual(dependencyObject); 2649UIElement newTarget = InputElement.GetContainingUIElement(rawStylusInputReport.StylusDevice.DirectlyOver as DependencyObject) as UIElement;
System\Windows\Input\Stylus\Wisp\WispStylusDevice.cs (14)
244if (doStylusCapture != null && !InputElement.IsValid(element)) 585UIElement uiElement = InputElement.GetContainingUIElement(stylusCapture as DependencyObject) as UIElement; 977if (!InputElement.IsValid(stylusOver)) 978stylusOver = InputElement.GetContainingInputElement(stylusOver as DependencyObject); 989IInputElement stylusCapture = InputElement.GetContainingInputElement(_stylusCapture as DependencyObject); 1000if (stylusOver != null && !InputElement.IsValid(stylusOver)) 1001stylusOver = InputElement.GetContainingInputElement(stylusOver as DependencyObject); 1022ieTest = InputElement.GetContainingInputElement(eTest.GetUIParent(true)); 1028ieTest = InputElement.GetContainingInputElement(ceTest.GetUIParent(true)); 1158if (relativeTo != null && !InputElement.IsValid(relativeTo)) 1168DependencyObject containingVisual = InputElement.GetContainingVisual(dependencyObject); 1192Point ptRelative = InputElement.TranslatePoint(ptRoot, relativePresentationSource.RootVisual, (DependencyObject)relativeTo); 1509DependencyObject containingVisual = InputElement.GetContainingVisual(_stylusCapture as DependencyObject); 1716DependencyObject mouseCapturedVisual = InputElement.GetContainingVisual((DependencyObject)mouseCaptured);
System\Windows\Input\TouchDevice.cs (8)
186IInputElement capture = InputElement.GetContainingInputElement(_captured as DependencyObject); 214ieTest = InputElement.GetContainingInputElement(eTest.GetUIParent(true)); 222ieTest = InputElement.GetContainingInputElement(ceTest.GetUIParent(true)); 227ieTest = InputElement.GetContainingInputElement(e3DTest.GetUIParent(true)); 255if ((element != null) && !InputElement.IsValid(element)) 257element = InputElement.GetContainingInputElement(element as DependencyObject); 545DependencyObject containingVisual = InputElement.GetContainingVisual(_captured as DependencyObject); 1057UIElement element = InputElement.GetContainingUIElement(_directlyOver as DependencyObject) as UIElement;
System\Windows\InterOp\HwndMouseInputProvider.cs (1)
213DependencyObject containingVisual = InputElement.GetContainingVisual(relativeTo as DependencyObject);
System\Windows\PresentationSource.cs (3)
118if (!InputElement.IsValid(element)) 184if (!InputElement.IsValid(e)) 681DependencyObject v = InputElement.GetRootVisual(o, enable2DTo3DTransition);
System\Windows\UIElement.cs (13)
1454parent = InputElement.GetContainingUIElement(parentAsVisual); 1469parent = InputElement.GetContainingUIElement(parentAsVisual3D); 1504parent = InputElement.GetContainingUIElement(oldParent); 1543parent = InputElement.GetContainingUIElement(_parent); 1557parent = InputElement.GetContainingUIElement(_parent); 1571parent = InputElement.GetContainingUIElement(e.OldParent); 1610parent = InputElement.GetContainingUIElement(myParent, true); 1976return InputElement.TranslatePoint(point, this, relativeTo); 2057DependencyObject containingElement = InputElement.GetContainingUIElement(candidate); 2061pt = InputElement.TranslatePoint(pt, this, candidate); 3648parent = InputElement.GetContainingUIElement(uie._parent); 3752DependencyObject parent = InputElement.GetContainingUIElement(uie._parent); 3862DependencyObject parent = InputElement.GetContainingUIElement(_parent);
System\Windows\UIElement3D.cs (8)
163parent = InputElement.GetContainingUIElement(parentAsVisual); 196parent = InputElement.GetContainingUIElement(oldParent); 235parent = InputElement.GetContainingUIElement(InternalVisualParent); 249parent = InputElement.GetContainingUIElement(InternalVisualParent); 263parent = InputElement.GetContainingUIElement(e.OldParent); 870parent = InputElement.GetContainingUIElement(uie.InternalVisualParent); 972DependencyObject parent = InputElement.GetContainingUIElement(uie.InternalVisualParent); 1073DependencyObject parent = InputElement.GetContainingUIElement(InternalVisualParent);