Share via


IXRUIElement::HitTest(XRPoint, IXRHitTestResults) (Compact 2013)

3/28/2014

This method returns the results of a hit test that specifies an x,y coordinate position on the screen.

Syntax

virtual HRESULT STDMETHODCALLTYPE HitTest(
    XRPoint *pPoint,
    IXRHitTestResults** ppElements
) = 0;

Parameters

  • pPoint
    [in] Pointer to an XRPoint structure that describes an x,y coordinate on the screen.
  • pResult
    [out] Address of a pointer to an IXRHitTestResults object that indicates the UI element or elements that cover the region at the specified x,y coordinate.

Return Value

Returns an HRESULT that indicates success or failure.

Remarks

In many scenarios for using a hit test, the pPoint value would first be obtained through a mouse event, such as from the XRMouseEventArgs event data.

.NET Framework Equivalent

System.Windows.UIElement.HitTest

Requirements

Header

XamlRuntime.h

sysgen

SYSGEN_XAML_RUNTIME

See Also

Reference

IXRUIElement::HitTest
IXRUIElement