コード例 #1
0
ファイル: VisualTreeHelper.cs プロジェクト: dfr0/moon
		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
ファイル: VisualTreeHelper.cs プロジェクト: ynkbt/moon
        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));
        }