जाना चाहिए तुम्हें सिल्वरलाइट में इस तरह एक फोन है
var result = VisualTreeHelper.FindElementsInHostCoordinates(myPoint, myUIElement);
तो इस WPF कोड अपने विशेष मामले में एक बराबर result
var result = new List<DependencyObject>();
//changed from external edits, because VisualHit is
//only a DependencyObject and may not be a UIElement
//this could cause exceptions or may not be compiling at all
//simply filter the result for class UIElement and
//cast it to IEnumerable<UIElement> if you need
//the very exact same result including type
VisualTreeHelper.HitTest(
myUiElement,
null,
new HitTestResultCallback(
(HitTestResult hit)=>{
result.Add(hit.VisualHit);
return HitTestResultBehavior.Continue;
}),
new PointHitTestParameters(myPoint));
होना चाहिए आप के लिए GeometryHitTestParameters
बजाय PointHitTestParameters
उपयोग कर सकते हैं एक रेक्ट-टेस्ट करें।