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
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Initialise components in MainActivity/AppDelegate using MVVMCross

Thread ID:





141098 Nov 23,2018 02:00 PM UTC Dec 31,2018 11:12 AM UTC Xamarin.Forms 3
Tags: SfListView
Aden Tutton
Asked On November 23, 2018 02:00 PM UTC

Hey guys,
Im looking to integrate SyncFusion into my Xamarin.Forms app and just seeing if anyone has had an experience initialising the components on App load? I can't seem to get my App to run by overriding the methods explained in the setup for both of the platforms

Jayaleshwari N [Syncfusion]
Replied On November 26, 2018 07:16 AM UTC

Hi Aden,  
Thanks for using Syncfusion products.  
We have checked the reported query “How to initialize components in renderer project” from our end. We have prepared the sample using SfListView with MVVMCross and initialize the renderer in the AppDelegate class of the iOS project. No need initialize renderer in android project. Sample is working fine and listview is loaded in the view as expected.  
For your reference we have attached the sample and you can download it from the below link.  
Can you please check the reported issue occurs in our sample also?  Please state whether you have asked about the renderer initialization of the listview. If not, then please share more details about what you want to initialize in the renderer project which would highly help us to analyze the query better and provide an appropriate solution.  
Jayaleshwari N 

Vito Feleppa
Replied On December 28, 2018 02:44 PM UTC

Hi, I got the same issue, but for Android.
I don't know when to initialize Syncfusion.XForms.iOS.PopupLayout.SfPopupLayoutRenderer.Init(); on Android.
Which is the call to override and to put the syncfusion init ?
I tried to put on MainActivity.OnCreate() but the sfPopupLayout fails.

Jayaleshwari N [Syncfusion]
Replied On December 31, 2018 11:12 AM UTC

Hi Vito,  
Thanks for Contacting Syncfusion Support. 
We checked the reported query “To initialize the popup renderer in MVVM Cross sample” from our side. You can resolve the reported issue by initializing the popup renderer in the MainActivity.cs class in Android renderer project, please find the code snippet for the same below.   
namespace MvxForms.Droid  
    [Activity(Label = "MvxForms.Droid", Icon = "@drawable/icon", Theme ="@style/MyTheme", ConfigurationChanges = ConfigChanges.ScreenSize | ConfigChanges.Orientation)]  
    public class MainActivity : MvxFormsAppCompatActivity  
        protected override void OnCreate(Bundle bundle)  
            TabLayoutResource = Resource.Layout.Tabbar;  
            ToolbarResource = Resource.Layout.Toolbar;  
We have prepared the sample as per your requirement to display popup in MVVM Cross, you can download the same from the following link.  
Please let us know if you would require further assistance.  
Jayaleshwari N 


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon