views:

31

answers:

1

I am using EF with WPF.
How should I create a ListBox that shows both Contacts and Persons?
My question is rather how to retrieve it and create the CollcetionViewSource(s).

I know I will have to use ItemTemplateSelector, that's less what I care, what I really care is the retrieval, but any tips on the representation will be welcommed as well.

Thanks

+1  A: 

See the CompositeCollection class.

HTH,
Kent

Kent Boogaart
WOW, I thought the solution is much more complex!Thanks!!
Shimmy