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