11 references to IsAncestorOfEx
PresentationFramework (11)
System\Windows\Controls\DataGrid.cs (5)
5558if (nextFocusTarget != null && !keyboardNavigation.IsAncestorOfEx(this, nextFocusTarget)) 5672if (nextFocusTarget != null && keyboardNavigation.IsAncestorOfEx(this, nextFocusTarget)) 5718if (nextFocusTarget != null && keyboardNavigation.IsAncestorOfEx(this, nextFocusTarget)) 5752if (nextFocusTarget != null && keyboardNavigation.IsAncestorOfEx(this, nextFocusTarget)) 5787if (nextFocusTarget != null && keyboardNavigation.IsAncestorOfEx(this, nextFocusTarget))
System\Windows\Input\KeyboardNavigation.cs (6)
2668return DoubleUtil.GreaterThan(targetRect.Left, sourceRect.Left) || (DoubleUtil.AreClose(targetRect.Left, sourceRect.Left) && IsAncestorOfEx(sourceElement, targetElement)); 2670return DoubleUtil.LessThan(targetRect.Right, sourceRect.Right) || (DoubleUtil.AreClose(targetRect.Right, sourceRect.Right) && IsAncestorOfEx(sourceElement, targetElement)); 2689return DoubleUtil.GreaterThan(targetRect.Top, sourceRect.Top) || (DoubleUtil.AreClose (targetRect.Top, sourceRect.Top) && IsAncestorOfEx(sourceElement, targetElement)); 2691return DoubleUtil.LessThan(targetRect.Bottom, sourceRect.Bottom) || (DoubleUtil.AreClose(targetRect.Bottom, sourceRect.Bottom) && IsAncestorOfEx(sourceElement, targetElement)); 2856(considerDescendants || !IsAncestorOfEx(sourceElement, currElement))) 2863&& (considerDescendants || !IsAncestorOfEx(sourceElement, currElement)))