I have a listbox that is bound to an observablecollection. The observable collection contains a list of objects, each with it’s own observablecollection. What i want is to click an item in the first listbox and have it’s list of things displayed in the second listbox. Can I do this in pure WPF?
I have a listbox that is bound to an observablecollection. The observable collection contains
Share
Just bind the ItemsSource of the second listbox to the SelectedItem of the first list box.
Edit: here is some code.
Xaml