<esri:Map MapGesture="OnGesture" /> <-- your event handler private void OnGesture(object sender, Map.MapGestureEventArgs e) { if (e.Gesture == GestureType.Tap) { var vm = DataContext as IMyContractThatIsImplementedInViewModel; if (vm == null) // Check if current datacontext supports it. throw new UnsupportedDataContextException(); vm.DoMyViewModelStuff(e.MapPoint); // Call your VM without any external information. } }
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.