0
votes

I'm trying to make a listview inside a listview(nested listview) anyone can help? Thanks.

something like this:

nested listview

2
Looks like you need a custom control here, grid or stacklayout with a bindable source property. - Nick Kovalsky
Don't nest a listview inside a listview. This is the worst possible practise. Create a control. - Axemasta
can you share some code plz for a custom one? Thanks - mohammad anouti

2 Answers

2
votes

Nested listview is a general bad practice in Xamarin because you cannot predict which one will get the gesture.

However, you can try using grouping options or can give a try to this Expandable ListView.

Another way to solve this is to open a new page once you click on the first list view items and then display the second listview in a second page.

Happy coding,

1
votes

Its not possible to have a nested list view in Xamarin Forms. However it is possible by using custom renders.

You can create a repeater view which can be used inside the list view. Follow the link for the detailed explanation on creating a Repeater view.

RepeaterView