I have successfully created my data source, which is a CLR object of the class Person. Person class has a bunch of public properties, such as Name, Emails, Phones, etc. I want to data bind person's emails (there's more than one email) to DataGrid or ListBox controls.
I want to be able to choose which fields of the email I want to show (email has properties ID, email, and email type). If I just data bind ItemsSource property:
- for DataGrid - all properties get binded (and I want to skip the ID property)
- for ListBox - only the email value is seen, so email type is missing.
How can I make it right using Microsoft Expression Blend? I have the latest version 4 if it matters to anyone. Thanks very much!