Share via


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

Return Value

Type: Microsoft.Windows.Design.Interaction.ViewHitTestResult
A ViewHitTestResult that holds the visual objects that were hit.

.NET Framework Security

See Also

Reference

ViewItem Class

Microsoft.Windows.Design.Interaction Namespace