Adam Ness
Adam Ness

Reputation: 6283

Binding Gtk# NodeView to a IList?

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.

Upvotes: 3

Views: 1134

Answers (2)

Yakeen
Yakeen

Reputation: 2215

Gtk.DataBindings is wahat you're looking for.

Upvotes: 1

Goran
Goran

Reputation: 6846

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

Upvotes: 1

Related Questions