Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
HitTestCore Method (PointHitTestParameters)
Collapse the table of content
Expand the table of content

HostVisual.HitTestCore Method (PointHitTestParameters)

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

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

protected override HitTestResult HitTestCore(
	PointHitTestParameters hitTestParameters


Type: System.Windows.Media.PointHitTestParameters

A value of type PointHitTestParameters.

Return Value

Type: System.Windows.Media.HitTestResult
Returns a value of type HitTestResult. The VisualHit property contains the visual object 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

Supported in: 4.6, 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
© 2015 Microsoft