Share via


GetPointerTarget Method

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Returns the visible child of this UIElement that contains a specified screen point.

Namespace:  Microsoft.SPOT.Presentation
Assembly:  Microsoft.SPOT.TinyCore (in Microsoft.SPOT.TinyCore.dll)

Syntax

'Declaration
Public Function GetPointerTarget ( _
    x As Integer, _
    y As Integer _
) As UIElement
public UIElement GetPointerTarget(
    int x,
    int y
)
public:
UIElement^ GetPointerTarget(
    int x, 
    int y
)
member GetPointerTarget : 
        x:int * 
        y:int -> UIElement 
public function GetPointerTarget(
    x : int, 
    y : int
) : UIElement

Parameters

Return Value

Type: Microsoft.SPOT.Presentation. . :: . .UIElement
The visible child that contains the specified point, or nullNothingnullptrunita null reference (Nothing in Visual Basic) if none is found.

Remarks

The GetPointerTarget method only returns a child element that is visible, whereas the ChildElementFromPoint method returns the most recently created or inserted child element that contains the specified point, whether or not that element is visible.

.NET Framework Security

See Also

Reference

UIElement Class

Microsoft.SPOT.Presentation Namespace