This is a migrated thread and some comments may be shown as answers.

How to define the ItemTemplate in the Resources

1 Answer 89 Views
ListView
This is a migrated thread and some comments may be shown as answers.
FS
Top achievements
Rank 1
FS asked on 18 Jul 2017, 05:03 PM

Hi:

I am trying to set the DataTemplate in the xaml under the Resources without luck. It throws a native error.

Do you have a sample about how to define the itemplate using Xaml.

I was using this link without luck:

https://developer.xamarin.com/guides/xamarin-forms/application-fundamentals/templates/data-templates/selector/

 

Thanks in advance.

David

 

 

1 Answer, 1 is accepted

Sort by
0
Stefan Nenchev
Telerik team
answered on 19 Jul 2017, 10:36 AM
Hello David,

I had no troubles achieving the desired behavior. Please have a look at the attached sample. Furthermore, I would like to inform you that the ItemTemplateSelector feature will be available for the next official release so it might be useful for you.

Regards,
Stefan Nenchev
Progress Telerik
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? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
ListView
Asked by
FS
Top achievements
Rank 1
Answers by
Stefan Nenchev
Telerik team
Share this question
or