/// <summary> /// Performs a hit test against the specified visual and returns the topmost descendant /// which contains the specified point. /// </summary> /// <param name="reference">The visual on which to perform a hit test.</param> /// <param name="point">The point to evaluate.</param> /// <returns>The topmost <see cref="Visual"/> which contains the specified point, or <see langword="null"/>.</returns> public static Visual HitTest(Visual reference, Point2D point) { Contract.Require(reference, nameof(reference)); return(reference.HitTest(point)); }