I am trying to use a collection that is a property of another collection to bind to a list. The following works fine
<ListBox ItemsSource="{Binding Path=Locations[0].Buildings}">
the problem is that I need a dynamic index and
<ListBox ItemsSource="{Binding Path=Locations[index].Buildings}">
where index is an integer in my viewmodel model does not work. Does anyone know how I can associate an index in my xaml with a property in my view model?
source share