I have a ListBox
bound to a large collection of a custom objects that, among other things, hold a Bitmap
.
Currently I'm having problems with the memory because all the bitmaps are loaded even if they aren't visible.
I would like the ListBox
to notify my model in some way so I could load/unload the bitmaps on demand as they are needed, in order to avoid having all of them loaded. Thus, only but only load the bitmaps that are visible within the bounds of the ListBox.
How could I do it?