views:

682

answers:

0

What types can I bind to the ItemsSource property of the DataForm control in the Silverlight 3 Beta and automatically get the Add and Delete buttons to show on the control?

I am making an application with RIA Services. I do have working add and delete methods in my domain service.

I bound an EntityList of Contacts from the DomainContext to a DataForm control and the Add/Delete buttons work like expected.

I bound the EntityCollection of the Emails associated with the currently selected Contact to another DataForm control, and the Add/Delete buttons do not show up.

If I make a List from the EntityCollection, the buttons show up, but then I lose change tracking on the entities in the List.

I made an adapter around the EntityCollection that implements the IList interface, and the buttons again did not show up.

What interface do I need to implement in my wrapper/adapter to get the buttons to show up?

Note: I can't create new tags yet. If I could I would also tag this with: DataForm ria-services