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