24 references to IsValid
PresentationCore (24)
System\Windows\Input\Command\RoutedCommand.cs (3)
121if ((target != null) && !InputElement.IsValid(target)) 157if ((target != null) && !InputElement.IsValid(target)) 303if ((elem != null) && InputElement.IsValid(elem))
System\Windows\Input\FocusChangedEventArgs.cs (2)
29if (oldFocus != null && !InputElement.IsValid(oldFocus)) 32if (newFocus != null && !InputElement.IsValid(newFocus))
System\Windows\Input\InputManager.cs (1)
744if(eventSource == null || !InputElement.IsValid(eventSource as IInputElement))
System\Windows\Input\KeyboardDevice.cs (1)
121if(!InputElement.IsValid(element))
System\Windows\Input\MouseDevice.cs (6)
300if (eltDO != null && !InputElement.IsValid(element)) 550if (relativeTo != null && !InputElement.IsValid(relativeTo)) 1507if (!InputElement.IsValid(mouseOver)) 1511if ((rawMouseOver != null) && !InputElement.IsValid(rawMouseOver)) 1559if (mouseOver != null && !InputElement.IsValid(mouseOver) ) 1628else if (!InputElement.IsValid(rawMouseOver))
System\Windows\Input\Stylus\Pointer\PointerStylusDevice.cs (4)
551if (doStylusCapture != null && !InputElement.IsValid(element)) 705if (relativeTo != null && !InputElement.IsValid(relativeTo)) 908if (!InputElement.IsValid(stylusOver)) 930if (stylusOver != null && !InputElement.IsValid(stylusOver))
System\Windows\Input\Stylus\Wisp\WispStylusDevice.cs (4)
244if (doStylusCapture != null && !InputElement.IsValid(element)) 977if (!InputElement.IsValid(stylusOver)) 1000if (stylusOver != null && !InputElement.IsValid(stylusOver)) 1158if (relativeTo != null && !InputElement.IsValid(relativeTo))
System\Windows\Input\TouchDevice.cs (1)
255if ((element != null) && !InputElement.IsValid(element))
System\Windows\PresentationSource.cs (2)
118if (!InputElement.IsValid(element)) 184if (!InputElement.IsValid(e))