ViewItem.HitTest Method
Initiates a hit test on the ViewItem, with caller-defined HitTestFilterCallback and HitTestResultCallback methods.
Namespace: Microsoft.Windows.Design.Interaction
Assembly: Microsoft.Windows.Design.Interaction (in Microsoft.Windows.Design.Interaction.dll)
Syntax
'Declaration
Public MustOverride Function HitTest ( _
filterCallback As ViewHitTestFilterCallback, _
resultCallback As ViewHitTestResultCallback, _
hitTestParameters As HitTestParameters _
) As ViewHitTestResult
public abstract ViewHitTestResult HitTest(
ViewHitTestFilterCallback filterCallback,
ViewHitTestResultCallback resultCallback,
HitTestParameters hitTestParameters
)
public:
virtual ViewHitTestResult^ HitTest(
ViewHitTestFilterCallback^ filterCallback,
ViewHitTestResultCallback^ resultCallback,
HitTestParameters^ hitTestParameters
) abstract
abstract HitTest :
filterCallback:ViewHitTestFilterCallback *
resultCallback:ViewHitTestResultCallback *
hitTestParameters:HitTestParameters -> ViewHitTestResult
public abstract function HitTest(
filterCallback : ViewHitTestFilterCallback,
resultCallback : ViewHitTestResultCallback,
hitTestParameters : HitTestParameters
) : ViewHitTestResult
Parameters
- filterCallback
Type: Microsoft.Windows.Design.Interaction.ViewHitTestFilterCallback
A delegate that specifies parts of the visual tree to omit from the hit test.
- resultCallback
Type: Microsoft.Windows.Design.Interaction.ViewHitTestResultCallback
A delegate that customizes the hit test.
- hitTestParameters
Type: System.Windows.Media.HitTestParameters
A HitTestParameters that defines the hit test.
Return Value
Type: Microsoft.Windows.Design.Interaction.ViewHitTestResult
A ViewHitTestResult that holds the visual objects that were hit.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.