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

Getting an odd issue with SFListview

Hello,
I am trying to use SFListview with my AXML layout, I already added the xml code inside my layout, but when I am trying to call it from C# code behind , I am getting an odd error saying : "cannot implicitly convert type Andriod.View.view to Syncfusion.ListView.XForms.SfListView "
here is a snippet of my AXMAL and C# code :

   <LinearLayout
           
            android:layout_width="fill_parent"
            android:orientation="vertical"
            android:layout_height="0dp"
            android:background= "@drawable/gradient_background"
            android:layout_weight="1.2">
          

<Syncfusion.ListView.XForms.SfListView
                android:id="@+id/Listsync"
                 android:verticalSpacing="10dp"
                android:horizontalSpacing="0dp"
                android:layout_width="fill_parent"
                android:layout_height="fill_parent"
                android:paddingLeft="10dp"
                android:paddingTop="10dp"
                android:clipToPadding="false"
                android:scrollbars="none"
                
                android:paddingRight="10dp"
            />
            
        
        </LinearLayout>


C# code:

private Syncfusion.ListView.XForms.SfListView listView;
listView = FindViewById(Resource.Id.Listsync);
Would you help me fix this issue !

Thanks !




1 Reply

DB Dinesh Babu Yadav Syncfusion Team May 17, 2019 06:49 AM UTC

Hi Mark, 
 
Thank you for using Syncfusion Products. 
 
We would like to let you know that currently, we have developed the SfListView control in Xamarin.Forms only. So that you are facing the reported issue. We suggest you to please refer the following UG documentation and sample for getting started with SfListView in Xamarin.Forms.  
 
 
  
To embed the SfListView control in native platforms, please refer the following article. 
 
Please let us know if you require further assistance. 
 
Regards, 
Dinesh Babu Yadav 


Loader.
Live Chat Icon For mobile
Up arrow icon