Example #1
0
 /// <summary>
 /// Determines whether a point is within the bounds of the visual.
 /// </summary>
 /// <param name="hitTestParameters">The point to test.</param>
 /// <returns>
 /// A <see cref="PointHitTestResult"/> if the point was within the bounds; otherwise null.
 /// </returns>
 protected virtual HitTestResult HitTestCore(PointHitTestParameters hitTestParameters)
 {
     return(this.GetHitTestBounds().Contains(hitTestParameters.HitPoint) ?
            new PointHitTestResult(this, hitTestParameters.HitPoint) : null);
 }
Example #2
0
 /// <summary>
 /// Determines whether a point is within the bounds of the visual.
 /// </summary>
 /// <param name="hitTestParameters">The point to test.</param>
 /// <returns>
 /// A <see cref="PointHitTestResult"/> if the point was within the bounds; otherwise null.
 /// </returns>
 protected virtual HitTestResult HitTestCore(PointHitTestParameters hitTestParameters)
 {
     return this.GetHitTestBounds().Contains(hitTestParameters.HitPoint) ?
         new PointHitTestResult(this, hitTestParameters.HitPoint) : null;
 }