xaml - Background gesture Recognizer not working for ios in xamarin.forms popup -


for xamarin.froms have created popup :

and have used showpopup give background popup if click outside poup poup closed ,its working fine in xamarin.android ios gesture rcognizer background view not working if have popup on top of background view

<stacklayout x:name="showpopups" padding="0" backgroundcolor="#99000000" horizontaloptions="fillandexpand" isvisible="{binding showpopup}" verticaloptions="fillandexpand">   <stacklayout.gesturerecognizers>     <tapgesturerecognizer command="{binding onclosepopupcommand}"  />   </stacklayout.gesturerecognizers> </stacklayout> 

for background popup in xamarin.forms..gesture recoginizer working fine background poup android ios command="{binding onclosepopupcommand} not getting called ..any suggestion implement it

you need run command on ui thread :

device.begininvokeonmainthread(() =>  {     run onclosepopupcommand here  }); 

Comments

Popular posts from this blog

asynchronous - C# WinSCP .NET assembly: How to upload multiple files asynchronously -

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -