Windows apps
Collapse the table of content
Expand the table of content
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

ContainerVisual.HitTest Method (HitTestFilterCallback, HitTestResultCallback, HitTestParameters)


Initiates a hit test on the ContainerVisual by using the HitTestFilterCallback and HitTestResultCallback objects.

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

public void HitTest(
	HitTestFilterCallback filterCallback,
	HitTestResultCallback resultCallback,
	HitTestParameters hitTestParameters


Type: System.Windows.Media.HitTestFilterCallback

The delegate that allows you to ignore parts of the visual tree that you are not interested in processing in your hit test results.

Type: System.Windows.Media.HitTestResultCallback

The delegate that is used to control the return of hit test information.

Type: System.Windows.Media.HitTestParameters

Defines the set of parameters for a hit test.

The filterCallback parameter can be null, in which case, it is ignored. If filterCallback is not null, it is invoked before resultCallback.

.NET Framework
Available since 3.0
Return to top
© 2016 Microsoft