VisualTreeHelper.FindElementsInHostCoordinates Method (Rect, Window)
Retrieves a set of objects that are located within a specified Rect of a window's coordinate space.
Assembly: System.Windows (in System.Windows.dll)
public static IEnumerable<UIElement> FindElementsInHostCoordinates( Rect intersectingRect, Window window )
- Type: System.Windows.Window
The window to search within.
You must specify some window for the window value to specify a frame of reference.
For this signature, because the determination is done by an area, multiple elements might be returned, and no meaning can be assigned to the order of returned elements in the set.
FindElementsInHostCoordinates is fundamentally similar to the HitTest methods in previous versions of Silverlight and in WPF.
For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.