Partager via


Given a point, how to get the element at that coordinate?

UIElement.InputHitTest is a hidden function that could do just that,

public IInputElement InputHitTest (
Point point
)

 Passing in the coordinate, and this function will look at the element subtree and get the element (IInputElement because it's a common interface between ContentElement and UIElement) that is at that location.

Comments