DCSIMG
Silverlight 3,.NET 3.0 - Alex Golesh's Blog About Silverlight Development

Browse by Tags

All Tags » Silverlight 3 » .NET 3.0 (RSS)

Silverlight Quick Tip: How to Perform a Hit Test

In some cases, especially when developing rich UI application developer need to identify which control were clicked or under mouse pointer at some point of time or just under some coordinate at the UI. For those purposes Silverlight provides “FindElementsInHostCoordinates” function in VisualTreeHelper class. The function gets the Point (coordinate on the screen) or Rect (rectangular area) and UIElement which will be checked recursively to have any visual child's in desired coordinate/area. The...