Hello. This is a small example of my setup:
public List<Parent> Parents {get;set;} = [];
public class Parent{
public int Id {get, set;}
public string Name {get;set;}
public List<Child> Children {get; set;}
}
public class Child{
public string Name {get;set;}
}
How to create a ListView where I can see the names of all Parent objects in the Parents list. And if I click on one name, all Names of the Childs are listed, if the Children List is not empty.
The example in the documentation uses the same class for parent and child, so I was not able to modify it for my usecase.