I'm using Silverlight 3 with RIA services. I've got a simple RIA DomainDataSource named "source" with a couple of ListBoxes bound to it. The method that the source queries returns a simple graph of objects: a collection of Parents, where each parent has a collection of Children.
My UI has two listboxes. ParentListBox binds ItemsSource to {Binding Data, ElementName=source}", with a DisplayMemberPath of Name. This shows all the parents' names, which is what I want.
ChildrenListBox binds ItemsSource to {Binding Data.Children, ElementName=source}. The result is that ChildrenListBox shows all the children of the parent currently selected in ParentListBox: when I change the selection, the values in the ChildrenListBox change. This is pretty smart behavior, I guess, but not what I want. What I want is for this second ListBox to display all of the children of all of the parents all the time, regardless of what is selected in ParentListBox. How can I achieve this?