7 references to IsDescendant
PresentationFramework (7)
src\Framework\System\Windows\Controls\ComboBox.cs (2)
1695
if (Mouse.Captured == null || !MenuBase.
IsDescendant
(comboBox, Mouse.Captured as DependencyObject))
1702
if (MenuBase.
IsDescendant
(comboBox, e.OriginalSource as DependencyObject))
src\Framework\System\Windows\Controls\Primitives\MenuBase.cs (4)
394
return
IsDescendant
(this, node);
554
if (Mouse.Captured == null || !MenuBase.
IsDescendant
(menu, Mouse.Captured as DependencyObject))
561
if (MenuBase.
IsDescendant
(menu, e.OriginalSource as DependencyObject))
828
if (!
IsDescendant
(this, Mouse.Captured as Visual) && !Mouse.Capture(this, CaptureMode.SubTree))
src\Framework\System\Windows\Controls\Primitives\Popup.cs (1)
1249
bool newCaptureInsidePopup = childPopupTookCapture || (Mouse.Captured != null && MenuBase.
IsDescendant
(root, Mouse.Captured as DependencyObject));