7 references to IsDescendant
PresentationFramework (7)
System\Windows\Controls\ComboBox.cs (2)
1692
if (Mouse.Captured == null || !MenuBase.
IsDescendant
(comboBox, Mouse.Captured as DependencyObject))
1699
if (MenuBase.
IsDescendant
(comboBox, e.OriginalSource as DependencyObject))
System\Windows\Controls\Primitives\MenuBase.cs (4)
392
return
IsDescendant
(this, node);
550
if (Mouse.Captured == null || !MenuBase.
IsDescendant
(menu, Mouse.Captured as DependencyObject))
557
if (MenuBase.
IsDescendant
(menu, e.OriginalSource as DependencyObject))
817
if (!
IsDescendant
(this, Mouse.Captured as Visual) && !Mouse.Capture(this, CaptureMode.SubTree))
System\Windows\Controls\Primitives\Popup.cs (1)
1244
bool newCaptureInsidePopup = childPopupTookCapture || (Mouse.Captured != null && MenuBase.
IsDescendant
(root, Mouse.Captured as DependencyObject));