We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

Can we use SfPopuplayout as separate page?

Hi,

I am currently using Rg.popup in my project and i consider to replace with sfPopup. i wonder if it is possible to replace it simply. because Rg.popup creates a page itself like below.

<pages:PopupPage xmlns="http://xamarin.com/schemas/2014/forms"
             xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
                 xmlns:pages="clr-namespace:Rg.Plugins.Popup.Pages;assembly=Rg.Plugins.Popup"
                 x:Class="myApp.InfoPopupPage">
    <pages:PopupPage.Content>

as you it derives from contentpage. So i create separate popuppage
and on any viewmodel, i will call simply

  InfoPopupPage page1 = new InfoPopupPage();
   await _navigation.PushPopupAsync(page1);

Can I have similar usage with sfPopup?

1 Reply

SP Subburaj Pandian Veluchamy Syncfusion Team February 27, 2019 08:52 AM UTC

Hi Emil, 
 
Thank you for your interest in Syncfusion products. 
 
Based on the provided information, your requirement of “Setting Popup layout as content in the page” can be achieved by setting the Popup layout as content in the concern page. And if your requirement is to render the Popup without any function like Button click, you can call Show method in the Popup with the delay.

We have prepared sample by setting Popup as content in the ContentPage and shown the Popup directly without any click operation. Please find the sample by the following link, 
 
Sample link: PopupDefaultOpen 
 
We hope this helps. Please let us know, if you have any query. 
 
Regards,
Subburaj Pandian V 
 


Loader.
Live Chat Icon For mobile
Up arrow icon