private void MyMap_MouseLeftButtonDown(object sender, System.Windows.Input.MouseButtonEventArgs e) { GraphicsLayer graphicsLayer = MyMap.Layers["MyGraphicsLayer"] as GraphicsLayer; GeneralTransform generalTransform = MyMap.TransformToVisual(Application.Current.RootVisual); System.Windows.Point transformScreenPnt = generalTransform.Transform(e.GetPosition(this.MyMap)); var graphics = graphicsLayer.FindGraphicsInHostCoordinates(transformScreenPnt); }
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.