xaml - Xamarin Forms Delay in Navigation -


i’m working on xamarin forms project , stuck issue, want open popups. forms not have in build popups so, have different xaml pages , i’m loading them inside mainpage.xaml , changing visibility when required.

**popup_1.xaml**  <?xml version="1.0" encoding="utf-8" ?> <stacklayout xmlns="http://xamarin.com/schemas/2014/forms" xmlns:x=http://schemas.microsoft.com/winfx/2009/xaml x:class="abc.views.popup_1">   <stacklayout > <label text="{binding firstname}" verticaloptions="centerandexpand" horizontaloptions="startandexpand" font="large" textcolor="black" /> </stacklayout>  </stacklayout>  

i have many layouts popup_1 want them shown popup. here’s mainpage.xaml here contains 3 popup layouts.

**mainpage.xaml**  <?xml version="1.0" encoding="utf-8" ?> <contentpagexmlns="http://xamarin.com/schemas/2014/forms" xmlns:x=http://schemas.microsoft.com/winfx/2009/xaml xmlns:controls="clr-namespace:abc.views;assembly=abc" x:class="abc.views.mainpage">   <absolutelayout backgroundcolor="transparent" padding="10" isvisible="{binding showpopup_1}" horizontaloptions="centerandexpand" verticaloptions="centerandexpand" >         <stacklayout orientation="horizontal" backgroundcolor="transparent"   absolutelayout.layoutbounds="0.5, 0.5, -1, -1" absolutelayout.layoutflags="positionproportional" >             <controls:popup_1   />         </stacklayout>     </absolutelayout>   <absolutelayout backgroundcolor="transparent" padding="10" isvisible="{binding showpopup_2}" horizontaloptions="centerandexpand" verticaloptions="centerandexpand" >         <stacklayout orientation="horizontal" backgroundcolor="transparent"   absolutelayout.layoutbounds="0.5, 0.5, -1, -1" absolutelayout.layoutflags="positionproportional" >             <controls:popup_2   />         </stacklayout>     </absolutelayout>  <absolutelayout backgroundcolor="transparent" padding="10" isvisible="{binding showpopup_3}" horizontaloptions="centerandexpand" verticaloptions="centerandexpand" >         <stacklayout orientation="horizontal" backgroundcolor="transparent"   absolutelayout.layoutbounds="0.5, 0.5, -1, -1" absolutelayout.layoutflags="positionproportional" >             <controls:popup_3  />         </stacklayout>     </absolutelayout>   </contentpage>  

the problem when i’m trying navigate mainpage.xaml taking lot of time navigate. there standard solution issue ? or how can deal delay ? note: i’m using mvvm binding pattern change visibility of layouts

as forms not have in build popups

refer page of documentation

https://developer.xamarin.com/guides/xamarin-forms/user-interface/navigation/pop-ups/


Comments

Popular posts from this blog

python - How to insert QWidgets in the middle of a Layout? -

python - serve multiple gunicorn django instances under nginx ubuntu -

module - Prestashop displayPaymentReturn hook url -