11 references to IsAncestorOfEx
PresentationFramework (11)
System\Windows\Controls\DataGrid.cs (5)
5600if (nextFocusTarget != null && !keyboardNavigation.IsAncestorOfEx(this, nextFocusTarget)) 5714if (nextFocusTarget != null && keyboardNavigation.IsAncestorOfEx(this, nextFocusTarget)) 5760if (nextFocusTarget != null && keyboardNavigation.IsAncestorOfEx(this, nextFocusTarget)) 5794if (nextFocusTarget != null && keyboardNavigation.IsAncestorOfEx(this, nextFocusTarget)) 5829if (nextFocusTarget != null && keyboardNavigation.IsAncestorOfEx(this, nextFocusTarget))
System\Windows\Input\KeyboardNavigation.cs (6)
2680return DoubleUtil.GreaterThan(targetRect.Left, sourceRect.Left) || (DoubleUtil.AreClose(targetRect.Left, sourceRect.Left) && IsAncestorOfEx(sourceElement, targetElement)); 2682return DoubleUtil.LessThan(targetRect.Right, sourceRect.Right) || (DoubleUtil.AreClose(targetRect.Right, sourceRect.Right) && IsAncestorOfEx(sourceElement, targetElement)); 2701return DoubleUtil.GreaterThan(targetRect.Top, sourceRect.Top) || (DoubleUtil.AreClose (targetRect.Top, sourceRect.Top) && IsAncestorOfEx(sourceElement, targetElement)); 2703return DoubleUtil.LessThan(targetRect.Bottom, sourceRect.Bottom) || (DoubleUtil.AreClose(targetRect.Bottom, sourceRect.Bottom) && IsAncestorOfEx(sourceElement, targetElement)); 2872(considerDescendants || !IsAncestorOfEx(sourceElement, currElement))) 2879&& (considerDescendants || !IsAncestorOfEx(sourceElement, currElement)))