Quantcast
Channel: Recent Threads — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 204402

button click on xamarin forms map infowindow's button

$
0
0

Hi,

I am showing infowindow on click of map pin. In infowindow I am showing text, spinner and button.

void OnInfoWindowClick(object sender, GoogleMap.InfoWindowClickEventArgs e)
{
var customPin = GetCustomPin(e.Marker);
if (customPin == null)
{
throw new Exception("Custom pin not found");
}

        if(customPin.Name != null)
        {
            var address = Android.Net.Uri.Parse("https://google.com");
            var intent = new Intent(Intent.ActionView, address);
            intent.AddFlags(ActivityFlags.NewTask);
            Android.App.Application.Context.StartActivity(intent);
        }
    }

when I am clicking on infowindow or any control like spinner or button, it is redirecting me on google.com which I have written in my code.

I do not have any idea how can I handle button click event and spinner selection change here.

Can anyone suggest me the way to handle it?


Viewing all articles
Browse latest Browse all 204402

Latest Images

Trending Articles



Latest Images

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