<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. } }
サインインしたメンバーは投稿、更新のフォローなどができます。初めてですか?無料アカウントを登録してください。
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.