Visual::HitTestCore Method (PointHitTestParameters^)
Determines whether a point coordinate value is within the bounds of the visual object.
Assembly: PresentationCore (in PresentationCore.dll)
protected: virtual HitTestResult^ HitTestCore( PointHitTestParameters^ hitTestParameters )
Parameters
- hitTestParameters
-
Type:
System.Windows.Media::PointHitTestParameters^
A PointHitTestParameters object that specifies the Point to hit test against.
Return Value
Type: System.Windows.Media::HitTestResult^A HitTestResult that represents the Visual that is returned from a hit test.
You can override the default hit testing support on visual objects by overriding the HitTestCore method. This means that when you invoke the HitTest method, your overridden implementation of HitTestCore is called. Your overridden method is called when a hit test falls within the bounding rectangle of the visual object, even if the coordinate falls outside the geometry of the visual object.
Available since 3.0