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. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Getting an odd issue with SFListview

Thread ID:

Created:

Updated:

Platform:

Replies:

144675 May 17,2019 01:09 AM UTC May 17,2019 06:49 AM UTC Xamarin.Forms 1
loading
Tags: SfListView
Mark Eric
Asked On May 17, 2019 01:09 AM UTC

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 !




Dinesh Babu Yadav [Syncfusion]
Replied On 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 


CONFIRMATION

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