0
votes

Is there a away to get XAML children with offset or Geolocation? Like the builtin function of the MapControl

MapControl.FindMapElementsAtOffset(Point p)
1

1 Answers

1
votes

Since the map control doesn't know the extent of the XAML element, it can't hit test them. XAML elements are only pinned to the map at a single point which is all the map control knows about. You could try VisualTreeHelper.FindElementsInHostCoordinates https://docs.microsoft.com/en-us/uwp/api/Windows.UI.Xaml.Media.VisualTreeHelper#Windows_UI_Xaml_Media_VisualTreeHelper_FindElementsInHostCoordinates_Windows_Foundation_Point_Windows_UI_Xaml_UIElement_