开发者

Can I use a LINQ IEnumerable result as the data source for a Gtk.TreeView?

开发者 https://www.devze.com 2022-12-11 03:20 出处:网络
When using GTK# from C# on Mono, I often find myself copying out开发者_StackOverflow社区 C# data structures into Gtk.ListStore -- it would be much easier if there was a Gtk.TreeModel which wrapped an

When using GTK# from C# on Mono, I often find myself copying out开发者_StackOverflow社区 C# data structures into Gtk.ListStore -- it would be much easier if there was a Gtk.TreeModel which wrapped an IEnumerable. Does such a thing exist?


I haven't played with GTK# for a long time but iirc GTK# lacks the databinding features that MWF and ASP.Net have. You could implement your own wrappers/helpers. I also found this http://tirania.org/blog/archive/2008/Mar-26-1.html that might be of help to you. According to the post it should extend GTK# to allow for databinding to datasources like IEnumerable lists.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号