Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 58056

1.3.1 Map Pin.Clicked event not working?

$
0
0

I'm trying to use the new Pin.Clicked event with no joy - anyone got it working??

`var position = new Position(venue.Lat, venue.Lon);

var pin = new Pin
{
    Type = PinType.Place,
    Position = position,
    Label = venue.Title,
    Address = venue.Address + " " + venue.Suburb + " " + venue.Postcode
};

pin.Clicked += (sender, e) =>
{
    DisplayAlert("Tapped!", "Pin was tapped.", "OK");
};

map.Pins.Add(pin);`

Viewing all articles
Browse latest Browse all 58056

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>