I'm following the example code from the ListView Getting Started section. At the end of the example, it states "set the list view as content of your page". How is this done? I tried SetContentView(listView) but get an error stating "cannot convert from RadListView to View". Here's my activity code:
That code looks like it came from the Xamarin.Forms documentation. UI for Xamarin is primarily a Xamarin.Forms product, however we do have native versions of many of the controls that you can use on a non-Forms application. These native controls are the controls that eventually get rendered by the Xamarin.Forms PCL (via Custom Renderers)
First, let me answer your question so that you can have some context, and then I'll show you where you can find the help to use the Android native RadListView
That code is intended for use in a Xamarin.Forms ContentPage, where you can add the UI for Xamarin Xamarin.Forms RadListView to the ContentPage by doing the following:
<!-- XamarinForms XAML -->
public partial class MainPage : ContentPage
// RadListView creation
// Set the ContentPage content with RadListView
this.Content = listView;
As I initially stated, it appears you want to use the native RadListView directly in a Xamarin.Android application. For this, you need to use the android control directly. You can follow the native control's documentation here to get started.
You can find examples installed alongside UI for Xamarin, go here to learn where to find all the demos. In particular, you'll likely want these ones: C:\Program Files (x86)\Progress\Telerik UI for Xamarin R3 2017\Examples\Android
Lance | Tech Support Engineer, Sr.
Do you want to have your say when we set our development plans?
Do you want to know when a feature you care about is added or when a bug fixed?
Telerik Feedback Portal
and vote to affect the priority of the items