Пример #1
0
		public static IEnumerable<UIElement> FindElementsInHostCoordinates (Point intersectingPoint, UIElement subtree)
		{
			HitTestCollection collection = new HitTestCollection ();
			// note: 'subtree' is not validated (null-check) by Silverlight 2 - leading to a NRE
			Mono.NativeMethods.uielement_find_elements_in_host_coordinates_p (subtree.native, intersectingPoint, collection.native);
			return new List<UIElement> (collection);
		}
Пример #2
0
        public static IEnumerable <UIElement> FindElementsInHostCoordinates(Rect intersectingRect, UIElement subtree)
        {
            HitTestCollection collection = new HitTestCollection();

            // note: 'subtree' is not validated (null-check) by Silverlight 2 - leading to a NRE
            Mono.NativeMethods.uielement_find_elements_in_host_coordinates_r(subtree.native, intersectingRect, collection.native);
            return(new List <UIElement> (collection));
        }