VisualTreeHelper.HitTest Method (Visual3D, HitTestFilterCallback, HitTestResultCallback, HitTestParameters3D)
Initiates a hit test on the specified Visual3D, with caller-defined HitTestFilterCallback and HitTestResultCallback methods.
Assembly: PresentationCore (in PresentationCore.dll)
public static void HitTest( Visual3D reference, HitTestFilterCallback filterCallback, HitTestResultCallback resultCallback, HitTestParameters3D hitTestParameters )
Parameters
- reference
- Type: System.Windows.Media.Media3D.Visual3D
The Visual3D to hit test.
- filterCallback
- Type: System.Windows.Media.HitTestFilterCallback
The method that represents the hit test filter callback value.
- resultCallback
- Type: System.Windows.Media.HitTestResultCallback
The method that represents the hit test result callback value.
- hitTestParameters
- Type: System.Windows.Media.Media3D.HitTestParameters3D
The 3D parameter value to hit test against.
The filterCallback parameter can be null, in which case, it is ignored. If filterCallback is not null, it is invoked before resultCallback. resultCallback cannot be null.
Note
|
|---|
|
It is possible for a hit test that starts in a 2D visual tree to return RayHitTestResult, which is a 3D hit test result object. Hit testing that starts in a 2D visual tree seamlessly extends into any defined 3D visual tree. |
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Note