-
[Android] How can I add the capture of the InfoWindow click event in the MauiMaps demo? |
Beta Was this translation helpful? Give feedback.
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.
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.