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