picoe / Eto

Cross platform GUI framework for desktop and mobile applications in .NET
Other
3.69k stars 334 forks source link

Add support for ListViews (or ControlLists) #276

Open Jojatekok opened 9 years ago

Jojatekok commented 9 years ago

In WPF, ListView is a control which can host and present a list of controls to the user, thus, allowing developers to implement their own fancy controls as list items.

Jojatekok commented 9 years ago

@cwensley I could also use TableLayouts in order to achieve the same, but I cannot add items to it while running the application (even after invalidating the control, it just stays the same).

cwensley commented 9 years ago

Yes this would be a great feature! My initial thoughts were to extend the existing ListBox to specify a cell, which with #266 would allow you to have lists (and grids) with completely custom controls.

As for the TableLayout, I have plans to make it react at runtime to content changes. I'm not sure when exactly I'll get to this, but I'm going to be looking at it as part of #248 (which will be soon). Depending on how difficult, it might make it in for that.

Thanks for the great feedback!

claunia commented 7 years ago

Apparently ListView is how WPF implements #565

michaldobrodenka commented 6 years ago

This would be great. I need something like this, but in the end I decided to embed WPF list controls. Will have to implement it natively also on Mac :( Good thing is, it was very fast to make it in WPF. (What troubles me, when WPF list is embedded in ETO, mouse wheel does not work)

I've tried to generate 1000 rows of controls into layout but it was unusable slow with Eto and WPF also. With more than 100 rows, special list controls are required.

I've also considered for lists: