views:

355

answers:

2

I've got a data object with a component in it that is an System.Collections.Generic.IList, and I'd like to reflect changes to that list into a Gtk# NodeView, so that when an item is added to the list, the NodeView will get a new item added to it.

How would I listen for changes to an IList? I have considered wrapping the IList with a class that implements IList, delegates the requisite methods, and broadcasts an event when changing it's contents, but that seems like a lot of work for something that has probably already been solved by someone else.

+1  A: 

Do System.Componen.BindingList or System.Collections.ObjectModel.ObservableCollection exist in mono?

Goran
System.Collections.ObjectModel.ObservableCollection Exists, and I'm investigating it.
Adam N
+1  A: 

Gtk.DataBindings is wahat you're looking for.

Yakeen