Forum Xamarin.Forms
We are excited to announce that the Xamarin Forums are moving to the new Microsoft Q&A experience. Q&A is the home for technical questions and answers at across all products at Microsoft now including Xamarin!

We encourage you to head over to Microsoft Q&A for .NET for posting new questions and get involved today.

Different controls per row in ListView

Hello, I would like to know if there is a possibility to create a template that has different controls per row in a listview.
Example: I want that one row has a togglebutton, other row has a slider or a button, depending on a condition.

Posts

  • JohnHardmanJohnHardman GBUniversity admin

    @NunoMiranda.5262 - Use a DataTemplateSelector to switch between different templates, so that the correct template is used based on the content to be displayed.

Sign In or Register to comment.