Currently am working on an winforms application which shows contacts, but I have a problem with memory.
For each contact I build a panel with labels inside for name inside for name and number, and I will add this to my main Panel. Assume I have 1000 contacts; I would end up creating 1000 Panels along with one main panel.
My problem is, even though only 10 or so Panels (contacts) are visible in main Panel at any one time, I would still build all 1000 Panels, which is consuming a lot of memory.
I want a way to only build the Panel which are visible in main Panel. Ideally I want something similar to the RecyclerView in android. Is there any library which does similar to this in C# or Winforms?