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)
1600DependencyObject containingVisual = InputElement.GetContainingVisual(o);
System\Windows\Input\KeyboardDevice.cs (5)
119if(!InputElement.IsValid(element)) 157DependencyObject containingVisual = InputElement.GetContainingVisual(focus); 379_focusRootVisual = InputElement.GetRootVisual(focus); 601DependencyObject visualContainer = InputElement.GetContainingVisual(element); 1013if(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)
298if (eltDO != null && !InputElement.IsValid(element)) 349DependencyObject containingVisual = InputElement.GetContainingVisual(eltDO); 545if (relativeTo != null && !InputElement.IsValid(relativeTo)) 555DependencyObject containingVisual = InputElement.GetContainingVisual(dependencyObject); 592ptRelative = InputElement.TranslatePoint(ptRoot, relativePresentationSource.RootVisual, (DependencyObject)relativeTo); 723DependencyObject containingVisual = InputElement.GetContainingVisual(dependencyObject); 1482Point ptRelativeToOver = InputElement.TranslatePoint(ptRoot, rawMouseInputReport.InputSource.RootVisual, (DependencyObject)_mouseOver, out mouseOverAvailable); 1522if (!InputElement.IsValid(mouseOver)) 1524mouseOver = InputElement.GetContainingInputElement(mouseOver as DependencyObject); 1526if ((rawMouseOver != null) && !InputElement.IsValid(rawMouseOver)) 1528rawMouseOver = InputElement.GetContainingInputElement(rawMouseOver as DependencyObject); 1564IInputElement mouseCapture = InputElement.GetContainingInputElement(_mouseCapture as DependencyObject); 1574if (mouseOver != null && !InputElement.IsValid(mouseOver) ) 1575mouseOver = InputElement.GetContainingInputElement(mouseOver as DependencyObject); 1597ieTest = InputElement.GetContainingInputElement(eTest.GetUIParent(true)); 1605ieTest = InputElement.GetContainingInputElement(ceTest.GetUIParent(true)); 1611ieTest = InputElement.GetContainingInputElement(e3DTest.GetUIParent(true)); 1643else if (!InputElement.IsValid(rawMouseOver)) 1645rawMouseOver = InputElement.GetContainingInputElement(rawMouseOver as DependencyObject); 1664ptRelativeToOver = 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)
801DependencyObject containingVisual = InputElement.GetContainingVisual(dependencyObject);
System\Windows\Input\Stylus\Pointer\PointerStylusDevice.cs (12)
551if (doStylusCapture != null && !InputElement.IsValid(element)) 707if (relativeTo != null && !InputElement.IsValid(relativeTo)) 717DependencyObject containingVisual = InputElement.GetContainingVisual(dependencyObject); 743Point ptRelative = InputElement.TranslatePoint(ptRoot, relativePresentationSource.RootVisual, (DependencyObject)relativeTo); 910if (!InputElement.IsValid(stylusOver)) 911stylusOver = InputElement.GetContainingInputElement(stylusOver as DependencyObject); 921IInputElement stylusCapture = InputElement.GetContainingInputElement(_stylusCapture as DependencyObject); 932if (stylusOver != null && !InputElement.IsValid(stylusOver)) 933stylusOver = InputElement.GetContainingInputElement(stylusOver as DependencyObject); 954ieTest = InputElement.GetContainingInputElement(eTest.GetUIParent(true)); 960ieTest = InputElement.GetContainingInputElement(ceTest.GetUIParent(true)); 1027UIElement 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)
2454DependencyObject containingVisual = InputElement.GetContainingVisual(dependencyObject); 2664UIElement newTarget = InputElement.GetContainingUIElement(rawStylusInputReport.StylusDevice.DirectlyOver as DependencyObject) as UIElement;
System\Windows\Input\Stylus\Wisp\WispStylusDevice.cs (14)
244if (doStylusCapture != null && !InputElement.IsValid(element)) 587UIElement uiElement = InputElement.GetContainingUIElement(stylusCapture as DependencyObject) as UIElement; 983if (!InputElement.IsValid(stylusOver)) 984stylusOver = InputElement.GetContainingInputElement(stylusOver as DependencyObject); 995IInputElement stylusCapture = InputElement.GetContainingInputElement(_stylusCapture as DependencyObject); 1006if (stylusOver != null && !InputElement.IsValid(stylusOver)) 1007stylusOver = InputElement.GetContainingInputElement(stylusOver as DependencyObject); 1028ieTest = InputElement.GetContainingInputElement(eTest.GetUIParent(true)); 1034ieTest = InputElement.GetContainingInputElement(ceTest.GetUIParent(true)); 1164if (relativeTo != null && !InputElement.IsValid(relativeTo)) 1174DependencyObject containingVisual = InputElement.GetContainingVisual(dependencyObject); 1198Point ptRelative = InputElement.TranslatePoint(ptRoot, relativePresentationSource.RootVisual, (DependencyObject)relativeTo); 1515DependencyObject containingVisual = InputElement.GetContainingVisual(_stylusCapture as DependencyObject); 1724DependencyObject 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); 1059UIElement 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)) 677DependencyObject v = InputElement.GetRootVisual(o, enable2DTo3DTransition);
System\Windows\UIElement.cs (13)
1446parent = InputElement.GetContainingUIElement(parentAsVisual); 1461parent = InputElement.GetContainingUIElement(parentAsVisual3D); 1496parent = InputElement.GetContainingUIElement(oldParent); 1535parent = InputElement.GetContainingUIElement(_parent); 1549parent = InputElement.GetContainingUIElement(_parent); 1563parent = InputElement.GetContainingUIElement(e.OldParent); 1602parent = InputElement.GetContainingUIElement(myParent, true); 1968return InputElement.TranslatePoint(point, this, relativeTo); 2049DependencyObject containingElement = InputElement.GetContainingUIElement(candidate); 2053pt = InputElement.TranslatePoint(pt, this, candidate); 3640parent = InputElement.GetContainingUIElement(uie._parent); 3744DependencyObject parent = InputElement.GetContainingUIElement(uie._parent); 3854DependencyObject 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);