how to prevent closing of dialog when user touches outside of dialog area?

akkakk USMember ✭✭

How to avoide outside touch in display alert?
if (res == true)
{

                        var AppLink = new Uri("");
                        Device.OpenUri(AppLink);


                    }

                    else  (res == false)
                    {
                                 if (Device.OS == TargetPlatform.Android)
                                DependencyService.Get<IAndroidMethods>().CloseApp();

                    }

outside touch of the display alert and it again taking the result as false and closing the app ..which i dont need .
any suggestion?

Tagged:
Sign In or Register to comment.