Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 703
Adam Ness Avatar asked Aug 07 '26 05:08

Adam Ness


1 Answers

Gtk.DataBindings is wahat you're looking for.

like image 116
Yakeen Avatar answered Aug 09 '26 18:08

Yakeen



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!