Is it possible within Silverlight 4, to find out which control is being clicked on?
There is a property on all UIElements which is called IsHitTestVisible, but i cant actual perform a hittest on the controls?
Is it possible within Silverlight 4, to find out which control is being clicked
Share
You can hit test with VisualTreeHelper.FindElementsInHostCoordinates as described in MSDN docs:
http://msdn.microsoft.com/en-us/library/cc838402%28v=VS.95%29.aspx
However, a simpler approach might be to add handlers to the MouseLeftButtonUp events on the specific elements you are interested in hit testing.