I'm trying to use a collection that is a property of another collection to bind to a listbox. 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, does not work. Does anyone know how I can associate the index in my xaml with the property in my viewmodel?