12 references to IsDescendantOf
PresentationCore (3)
Core\CSharp\System\Windows\Media\Visual.cs (1)
4181return visual.IsDescendantOf(this);
Core\CSharp\System\Windows\Media3D\Visual3D.cs (2)
1327return visual.IsDescendantOf(this); 1359return ((Visual)parent2D).IsDescendantOf(ancestor);
PresentationFramework (9)
src\Framework\System\Windows\Controls\PopupControlService.cs (1)
439((v is Visual && ((Visual)v).IsDescendantOf(_currentToolTip)) ||
src\Framework\System\Windows\Controls\ScrollViewer.cs (2)
2511if (child != sv && child.IsDescendantOf(sv)) 2526if (child != null && child.IsDescendantOf(sv))
src\Framework\System\Windows\Controls\StickyNote.cs (2)
579if (menu.PlacementTarget != null && menu.PlacementTarget.IsDescendantOf(this)) 1254eatEvent = source.IsDescendantOf(this.Content.InnerControl);
src\Framework\System\Windows\Documents\AdornerLayer.cs (2)
796if (!element.IsDescendantOf(adornerLayerParent)) 816if (!elTemp.IsDescendantOf(adornerLayerParent))
src\Framework\System\windows\Documents\TextEditorMouse.cs (1)
783if(hitTestResult.VisualHit is Visual) check = ((Visual)hitTestResult.VisualHit).IsDescendantOf(renderScope);
src\Framework\System\Windows\Input\KeyboardNavigation.cs (1)
1699if (visualFocusedElement != null && visualFocusedElement != e && visualFocusedElement.IsDescendantOf(e))