Question

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.

Was it helpful?

Solution

Gtk.DataBindings is wahat you're looking for.

OTHER TIPS

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

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top