-
[Android] How can I add the capture of the InfoWindow click event in the MauiMaps demo? |
Beta Was this translation helpful? Give feedback.
Answered by
davefxy
Oct 22, 2022
Replies: 1 comment 8 replies
-
With net 7.0, when using an ItemSource with the Map control, you can add the following to the Pin DataTemplate: |
Beta Was this translation helpful? Give feedback.
8 replies
Answer selected by
VladislavAntonyuk
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
With net 7.0, when using an ItemSource with the Map control, you can add the following to the Pin DataTemplate:
InfoWindowClicked="Pin_InfoWindowClicked".
When adding pins individually to the Map control, you can set the InfoWindowClicked event like this:
mapPin.InfoWindowClicked += Pin_InfoWindowClicked; map.Pins.Add(mapPIn)
How can I accomplish this assignment within your demo app : MauiMap ? I tried the code listed above in the MauiMap demo on an Android, and it doesnt work.