Share via


UIElement.GetPointerTarget Method

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

public UIElement GetPointerTarget (
         intx,
         inty
)

Parameters

  • x
    The X coordinate of the point in question.
  • y
    The Y coordinate of the point in question.

Return Value

Returns the visible child UIElement that contains the specified point, or null 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.

Version Information

Available in .NET Micro Framework version 3.0 and above.

See Also

Reference

UIElement Class
UIElement Members
Microsoft.SPOT.Presentation Namespace