Linking Gtk # NodeView to IList?

I have a data object with a component in it, which is System.Collections.Generic.IList, and I would like to reflect the changes in this list in Gtk # NodeView so that when adding an item to the list, NodeView will get a new element added to it.

How will I listen to changes in IList? I looked at wrapping an IList with a class that implements IList, delegates the necessary methods, and broadcasts the event when its contents change, but this seems like a lot of work on something that was probably already resolved by someone else.

+3
source share
2 answers

Gtk.DataBindings is the wahat you are looking for.

+1
source

System.Componen.BindingList System.Collections.ObjectModel.ObservableCollection ?

+1

Source: https://habr.com/ru/post/1697907/


All Articles