130 references to InputElement
PresentationCore (130)
Core\CSharp\MS\Internal\DeferredElementTreeState.cs (1)
64
if (parent == null ||
InputElement
.IsValid(parent))
Core\CSharp\MS\Internal\SynchronizedInputHelper.cs (3)
296
if (
InputElement
.IsUIElement(InputManager.ListeningElement))
302
else if (
InputElement
.IsContentElement(InputManager.ListeningElement))
308
else if (
InputElement
.IsUIElement3D(InputManager.ListeningElement))
Core\CSharp\MS\Internal\UIElementHelper.cs (3)
113
parent =
InputElement
.GetContainingUIElement(myParent) as DependencyObject;
122
parent =
InputElement
.GetContainingInputElement(childAsUIElement.GetUIParentCore()) as DependencyObject;
129
parent =
InputElement
.GetContainingInputElement(childAsUIElement3D.GetUIParentCore()) as DependencyObject;
Core\CSharp\System\Windows\ContentElement.cs (2)
77
e =
InputElement
.GetContainingInputElement(_parent) as DependencyObject;
84
e =
InputElement
.GetContainingInputElement(doParent) as DependencyObject;
Core\CSharp\System\Windows\DragDrop.cs (1)
1410
targetPoint =
InputElement
.TranslatePoint(targetPoint, source.RootVisual, target);
Core\CSharp\System\Windows\DragEventArgs.cs (1)
109
dropPoint =
InputElement
.TranslatePoint(_dropPoint, _target, (DependencyObject)relativeTo);
Core\CSharp\System\Windows\Input\AccessKeyManager.cs (2)
531
DependencyObject containingVisual =
InputElement
.GetContainingVisual(elementDO);
577
DependencyObject uielement =
InputElement
.GetContainingUIElement((DependencyObject)element);
Core\CSharp\System\Windows\Input\Command\CommandManager.cs (6)
359
bool isUIElement =
InputElement
.IsUIElement(targetElementAsDO);
360
bool isContentElement = !isUIElement &&
InputElement
.IsContentElement(targetElementAsDO);
361
bool isUIElement3D = !isUIElement && !isContentElement &&
InputElement
.IsUIElement3D(targetElementAsDO);
639
if (
InputElement
.IsUIElement(senderAsDO))
643
else if (
InputElement
.IsContentElement(senderAsDO))
647
else if (
InputElement
.IsUIElement3D(senderAsDO))
Core\CSharp\System\Windows\Input\Command\RoutedCommand.cs (6)
149
if ((target != null) && !
InputElement
.IsValid(target))
194
if ((target != null) && !
InputElement
.IsValid(target))
356
if ((elem != null) &&
InputElement
.IsValid(elem))
408
if (
InputElement
.IsUIElement(targetAsDO))
412
else if (
InputElement
.IsContentElement(targetAsDO))
416
else if (
InputElement
.IsUIElement3D(targetAsDO))
Core\CSharp\System\Windows\Input\FocusChangedEventArgs.cs (2)
31
if (oldFocus != null && !
InputElement
.IsValid(oldFocus))
34
if (newFocus != null && !
InputElement
.IsValid(newFocus))
Core\CSharp\System\Windows\Input\InputElement.cs (4)
264
DependencyObject vFromAsDO =
InputElement
.GetContainingVisual(from);
265
Visual rootFrom =
InputElement
.GetRootVisual(from) as Visual;
300
DependencyObject vTo =
InputElement
.GetContainingVisual(to);
301
Visual rootTo =
InputElement
.GetRootVisual(to) as Visual;
Core\CSharp\System\Windows\Input\InputManager.cs (4)
955
if(eventSource == null || !
InputElement
.IsValid(eventSource as IInputElement))
992
if (
InputElement
.IsUIElement(eventSource))
998
else if (
InputElement
.IsContentElement(eventSource))
1004
else if (
InputElement
.IsUIElement3D(eventSource))
Core\CSharp\System\Windows\Input\InputMethod.cs (1)
1753
DependencyObject containingVisual =
InputElement
.GetContainingVisual(o);
Core\CSharp\System\Windows\Input\KeyboardDevice.cs (9)
163
if(!
InputElement
.IsValid(element))
209
DependencyObject containingVisual =
InputElement
.GetContainingVisual(focus);
462
_focusRootVisual =
InputElement
.GetRootVisual(focus);
470
if (
InputElement
.IsUIElement(o))
476
else if (
InputElement
.IsContentElement(o))
492
if (
InputElement
.IsUIElement(o))
498
else if (
InputElement
.IsContentElement(o))
680
DependencyObject visualContainer =
InputElement
.GetContainingVisual(element);
1112
if(
InputElement
.GetRootVisual (_focus as DependencyObject) != _focusRootVisual)
Core\CSharp\System\Windows\Input\Mouse.cs (1)
482
PresentationSource inputSource = PresentationSource.FromDependencyObject(
InputElement
.GetContainingVisual(relativeTo as DependencyObject));
Core\CSharp\System\Windows\Input\MouseDevice.cs (35)
364
if (eltDO != null && !
InputElement
.IsValid(element))
418
DependencyObject containingVisual =
InputElement
.GetContainingVisual(eltDO);
633
if (relativeTo != null && !
InputElement
.IsValid(relativeTo))
643
DependencyObject containingVisual =
InputElement
.GetContainingVisual(dependencyObject);
680
ptRelative =
InputElement
.TranslatePoint(ptRoot, relativePresentationSource.RootVisual, (DependencyObject)relativeTo);
792
if (
InputElement
.IsUIElement(dependencyObject))
796
else if (
InputElement
.IsContentElement(dependencyObject))
800
else if (
InputElement
.IsUIElement3D(dependencyObject))
811
DependencyObject containingVisual =
InputElement
.GetContainingVisual(dependencyObject);
1068
if (
InputElement
.IsUIElement(o))
1074
else if (
InputElement
.IsContentElement(o))
1083
else if (
InputElement
.IsUIElement3D(o))
1093
if (
InputElement
.IsUIElement(o))
1099
else if (
InputElement
.IsContentElement(o))
1108
else if (
InputElement
.IsUIElement3D(o))
1170
if (
InputElement
.IsUIElement(o))
1176
else if (
InputElement
.IsContentElement(o))
1185
else if (
InputElement
.IsUIElement3D(o))
1195
if (
InputElement
.IsUIElement(o))
1201
else if (
InputElement
.IsContentElement(o))
1210
else if (
InputElement
.IsUIElement3D(o))
1581
Point ptRelativeToOver =
InputElement
.TranslatePoint(ptRoot, rawMouseInputReport.InputSource.RootVisual, (DependencyObject)_mouseOver, out mouseOverAvailable);
1621
if (!
InputElement
.IsValid(mouseOver))
1622
mouseOver =
InputElement
.GetContainingInputElement(mouseOver as DependencyObject);
1623
if ((rawMouseOver != null) && !
InputElement
.IsValid(rawMouseOver))
1624
rawMouseOver =
InputElement
.GetContainingInputElement(rawMouseOver as DependencyObject);
1659
IInputElement mouseCapture =
InputElement
.GetContainingInputElement(_mouseCapture as DependencyObject);
1669
if (mouseOver != null && !
InputElement
.IsValid(mouseOver) )
1670
mouseOver =
InputElement
.GetContainingInputElement(mouseOver as DependencyObject);
1692
ieTest =
InputElement
.GetContainingInputElement(eTest.GetUIParent(true));
1700
ieTest =
InputElement
.GetContainingInputElement(ceTest.GetUIParent(true));
1706
ieTest =
InputElement
.GetContainingInputElement(e3DTest.GetUIParent(true));
1738
else if (!
InputElement
.IsValid(rawMouseOver))
1740
rawMouseOver =
InputElement
.GetContainingInputElement(rawMouseOver as DependencyObject);
1759
ptRelativeToOver =
InputElement
.TranslatePoint(ptRoot, rawMouseInputReport.InputSource.RootVisual, (DependencyObject)mouseOver);
Core\CSharp\System\Windows\Input\TouchDevice.cs (8)
237
IInputElement capture =
InputElement
.GetContainingInputElement(_captured as DependencyObject);
265
ieTest =
InputElement
.GetContainingInputElement(eTest.GetUIParent(true));
273
ieTest =
InputElement
.GetContainingInputElement(ceTest.GetUIParent(true));
278
ieTest =
InputElement
.GetContainingInputElement(e3DTest.GetUIParent(true));
306
if ((element != null) && !
InputElement
.IsValid(element))
308
element =
InputElement
.GetContainingInputElement(element as DependencyObject);
595
DependencyObject containingVisual =
InputElement
.GetContainingVisual(_captured as DependencyObject);
1158
UIElement element =
InputElement
.GetContainingUIElement(_directlyOver as DependencyObject) as UIElement;
Core\CSharp\System\Windows\Interop\HwndMouseInputProvider.cs (1)
272
DependencyObject containingVisual =
InputElement
.GetContainingVisual(relativeTo as DependencyObject);
Core\CSharp\System\Windows\PresentationSource.cs (11)
165
if (!
InputElement
.IsValid(element))
180
if (
InputElement
.IsUIElement(o))
191
else if (
InputElement
.IsUIElement3D(o))
231
if (!
InputElement
.IsValid(e))
247
if (
InputElement
.IsUIElement(o))
262
else if (
InputElement
.IsUIElement3D(o))
627
Debug.Assert(
InputElement
.IsUIElement3D(uie) ||
InputElement
.IsUIElement(uie));
831
DependencyObject v =
InputElement
.GetRootVisual(o, enable2DTo3DTransition);
859
if (
InputElement
.IsUIElement(doTarget))
863
else if (
InputElement
.IsContentElement(doTarget))
Core\CSharp\System\Windows\UIElement.cs (17)
1460
if (!
InputElement
.IsUIElement(parent) && !
InputElement
.IsUIElement3D(parent))
1473
parent =
InputElement
.GetContainingUIElement(parentAsVisual);
1488
parent =
InputElement
.GetContainingUIElement(parentAsVisual3D);
1507
if (!
InputElement
.IsUIElement(parent) && !
InputElement
.IsUIElement3D(parent))
1523
parent =
InputElement
.GetContainingUIElement(oldParent);
1562
parent =
InputElement
.GetContainingUIElement(_parent);
1576
parent =
InputElement
.GetContainingUIElement(_parent);
1590
parent =
InputElement
.GetContainingUIElement(e.OldParent);
1629
parent =
InputElement
.GetContainingUIElement(myParent, true);
2009
return
InputElement
.TranslatePoint(point, this, relativeTo);
2090
DependencyObject containingElement =
InputElement
.GetContainingUIElement(candidate);
2094
pt =
InputElement
.TranslatePoint(pt, this, candidate);
3688
parent =
InputElement
.GetContainingUIElement(uie._parent);
3792
DependencyObject parent =
InputElement
.GetContainingUIElement(uie._parent);
3907
DependencyObject parent =
InputElement
.GetContainingUIElement(_parent);
Core\CSharp\System\Windows\UIElement3D.cs (12)
158
if (!
InputElement
.IsUIElement(parent) && !
InputElement
.IsUIElement3D(parent))
185
parent =
InputElement
.GetContainingUIElement(parentAsVisual);
202
if (!
InputElement
.IsUIElement(parent) && !
InputElement
.IsUIElement3D(parent))
218
parent =
InputElement
.GetContainingUIElement(oldParent);
257
parent =
InputElement
.GetContainingUIElement(InternalVisualParent);
271
parent =
InputElement
.GetContainingUIElement(InternalVisualParent);
285
parent =
InputElement
.GetContainingUIElement(e.OldParent);
893
parent =
InputElement
.GetContainingUIElement(uie.InternalVisualParent);
995
DependencyObject parent =
InputElement
.GetContainingUIElement(uie.InternalVisualParent);
1101
DependencyObject parent =
InputElement
.GetContainingUIElement(InternalVisualParent);