I'm not sure that I'm on the right track with this, but essentially I'm trying to display a grouped list of elements where each element can be a member of several groups. those. two objects are connected on a many-to-many basis. I will try to explain...
My question is: how do I group elements like this into a control? I know ICollectionView and PropertyGroupDescription, but that doesn't seem to serve my purpose here (it seems to work only in a one-to-many scenario).
Any ideas?
Some notes:
- When displayed in the list, I want to show all the components grouped by set.
- When I select a component from this list, I only need that particular instance of the component (i.e. I want the component + collection from which I selected it).
- Ignore the fact that I'm using TreeView to show the items below, since I really use ListBox with GroupStyle
- I am using EF 4.3.1 with code and the MVVM WPF pattern.
source share