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