VisualTreeHelper.FindElementsInHostCoordinates Method (Point, UIElement)
Retrieves a set of objects that are located within a specified point of an object's coordinate space.
Assembly: System.Windows (in System.Windows.dll)
'Declaration Public Shared Function FindElementsInHostCoordinates ( _ intersectingPoint As Point, _ subtree As UIElement _ ) As IEnumerable(Of UIElement)
public static IEnumerable<UIElement> FindElementsInHostCoordinates( Point intersectingPoint, UIElement subtree )
The point to use as the determination point.
The object to search within.
You must specify some object for the subtree value to specify a frame of reference. If you want to use the most general frame of reference available (the entire content area of the Silverlight plug-in), use Application.RootVisual as the subtree input.
For most operations, you will generally be interested only in the first UIElement in the set, which is the element that is visually the topmost rendered element for the visual composition. Any other objects in the collection do not correspond to what would be reported as the source if the user clicked that point area (for instance the user clicked on an enabled and focusable control).
FindElementsInHostCoordinates is fundamentally similar to the HitTest methods in previous versions of Silverlight and in WPF.
Supported in: 5, 4, 3
Silverlight for Windows Phone
Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0
For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.