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