rotorgames / Rg.Plugins.Popup

Xamarin Forms popup plugin
MIT License
1.15k stars 336 forks source link

Prevent clicking "Out of popup" #748

Open ablohme86 opened 1 year ago

ablohme86 commented 1 year ago

🚀 Feature Requests

Is there a way to prevent the user from clicking outside the popup so it doesnt close?

Contextualize the feature

Describe the feature

Platforms affected (mark all that apply)

FaroukBel commented 1 year ago

Yes, there is a feature called CloseWhenBackgroundIsClicked you can implement it in your XAML code like this:

<pages:PopupPage xmlns:pages="http://rotorgames.com" xmlns="http://xamarin.com/schemas/2014/forms" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" CloseWhenBackgroundIsClicked="False"> </pages:PopupPage>