Forum Xamarin.Android
We are excited to announce that the Xamarin Forums are moving to the new Microsoft Q&A experience. Q&A is the home for technical questions and answers at across all products at Microsoft now including Xamarin!

We encourage you to head over to Microsoft Q&A for .NET for posting new questions and get involved today.

How to detect click outside of my popup window?

Hey I want to detect a click outside of popup window here is my code

        builder = new AlertDialog.Builder(Context);
        builder.SetTitle(Resource.String.rating_dialog_title);
        builder.SetMessage(Resource.String.rating_dialog_desc);
        builder.SetNegativeButton(Resource.String.yes, (s, e) =>
        {
            SetAppRateStatus(AppRateStausEnum.RateNow);
            IMvxWebBrowserTask help = new MvxWebBrowserTask();
            help.ShowWebPage("https://play.google.com/store/apps/details");
        });

        builder.SetNeutralButton(Resource.String.no, (s, e) =>
        {
            SetAppRateStatus(AppRateStausEnum.RemindMeLater);
        });

        builder.SetPositiveButton(Resource.String.never, (s, e) =>
        {
            SetAppRateStatus(AppRateStausEnum.Never);
        });

So please suggest me code that detects a click outside of popup window

Sign In or Register to comment.