Forum Xamarin.Forms

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.


  • 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.