11 references to IsAncestorOfEx
PresentationFramework (11)
System\Windows\Controls\DataGrid.cs (5)
5597if (nextFocusTarget != null && !keyboardNavigation.IsAncestorOfEx(this, nextFocusTarget)) 5711if (nextFocusTarget != null && keyboardNavigation.IsAncestorOfEx(this, nextFocusTarget)) 5757if (nextFocusTarget != null && keyboardNavigation.IsAncestorOfEx(this, nextFocusTarget)) 5791if (nextFocusTarget != null && keyboardNavigation.IsAncestorOfEx(this, nextFocusTarget)) 5826if (nextFocusTarget != null && keyboardNavigation.IsAncestorOfEx(this, nextFocusTarget))
System\Windows\Input\KeyboardNavigation.cs (6)
2670return DoubleUtil.GreaterThan(targetRect.Left, sourceRect.Left) || (DoubleUtil.AreClose(targetRect.Left, sourceRect.Left) && IsAncestorOfEx(sourceElement, targetElement)); 2672return DoubleUtil.LessThan(targetRect.Right, sourceRect.Right) || (DoubleUtil.AreClose(targetRect.Right, sourceRect.Right) && IsAncestorOfEx(sourceElement, targetElement)); 2691return DoubleUtil.GreaterThan(targetRect.Top, sourceRect.Top) || (DoubleUtil.AreClose (targetRect.Top, sourceRect.Top) && IsAncestorOfEx(sourceElement, targetElement)); 2693return DoubleUtil.LessThan(targetRect.Bottom, sourceRect.Bottom) || (DoubleUtil.AreClose(targetRect.Bottom, sourceRect.Bottom) && IsAncestorOfEx(sourceElement, targetElement)); 2862(considerDescendants || !IsAncestorOfEx(sourceElement, currElement))) 2869&& (considerDescendants || !IsAncestorOfEx(sourceElement, currElement)))