24 references to IsValid
PresentationCore (24)
System\Windows\Input\Command\RoutedCommand.cs (3)
132if ((target != null) && !InputElement.IsValid(target)) 168if ((target != null) && !InputElement.IsValid(target)) 314if ((elem != null) && InputElement.IsValid(elem))
System\Windows\Input\FocusChangedEventArgs.cs (2)
34if (oldFocus != null && !InputElement.IsValid(oldFocus)) 37if (newFocus != null && !InputElement.IsValid(newFocus))
System\Windows\Input\InputManager.cs (1)
752if(eventSource == null || !InputElement.IsValid(eventSource as IInputElement))
System\Windows\Input\KeyboardDevice.cs (1)
130if(!InputElement.IsValid(element))
System\Windows\Input\MouseDevice.cs (6)
309if (eltDO != null && !InputElement.IsValid(element)) 559if (relativeTo != null && !InputElement.IsValid(relativeTo)) 1516if (!InputElement.IsValid(mouseOver)) 1520if ((rawMouseOver != null) && !InputElement.IsValid(rawMouseOver)) 1568if (mouseOver != null && !InputElement.IsValid(mouseOver) ) 1637else if (!InputElement.IsValid(rawMouseOver))
System\Windows\Input\Stylus\Pointer\PointerStylusDevice.cs (4)
559if (doStylusCapture != null && !InputElement.IsValid(element)) 713if (relativeTo != null && !InputElement.IsValid(relativeTo)) 916if (!InputElement.IsValid(stylusOver)) 938if (stylusOver != null && !InputElement.IsValid(stylusOver))
System\Windows\Input\Stylus\Wisp\WispStylusDevice.cs (4)
247if (doStylusCapture != null && !InputElement.IsValid(element)) 980if (!InputElement.IsValid(stylusOver)) 1003if (stylusOver != null && !InputElement.IsValid(stylusOver)) 1161if (relativeTo != null && !InputElement.IsValid(relativeTo))
System\Windows\Input\TouchDevice.cs (1)
267if ((element != null) && !InputElement.IsValid(element))
System\Windows\PresentationSource.cs (2)
128if (!InputElement.IsValid(element)) 194if (!InputElement.IsValid(e))