HostVisual.HitTestCore Method (GeometryHitTestParameters)


Implements HitTestCore to supply base hit testing behavior (returning GeometryHitTestParameters).

Namespace:   System.Windows.Media
Assembly:  PresentationCore (in PresentationCore.dll)

override HitTestCore : 
        hitTestParameters:GeometryHitTestParameters -> GeometryHitTestResult


Type: System.Windows.Media.GeometryHitTestParameters

A value of type GeometryHitTestParameters.

Return Value

Type: System.Windows.Media.GeometryHitTestResult

Returns a value of type GeometryHitTestResult. The VisualHit property contains the visual that was hit.

HostVisual never reports itself as being hit. To change this behavior, create a class derived from HostVisual and override the HitTestCore methods.

.NET Framework
Available since 3.0
Return to top