Skip to content

[Android] How can I specify the InfoWindow click event? #124

Closed Answered by davefxy
davefxy asked this question in Q&A
Discussion options

You must be logged in to vote

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.

Replies: 1 comment 8 replies

Comment options

You must be logged in to vote
8 replies
@VladislavAntonyuk
Comment options

@davefxy
Comment options

@VladislavAntonyuk
Comment options

@davefxy
Comment options

@VladislavAntonyuk
Comment options

Answer selected by VladislavAntonyuk
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants