Is there any sort of built in mechanism to do dynamic management of a very large number of Images in an UltraListView. If not I guess I will have to build one...
I have to present a long list of files to the user. Each file is an archive of art assets with a small unique thumb nail based on a snapshot of the art in that file. I been evaluating UltraListView to display the files and using Appearance.Image to show the thumbnail for the file.
I have to open each file in binary and manually extract the thumbnail as a jpg, so getting a thumnail is not cheap. The issue is that potentially there may be several thousand files, each with a unique icon. So there are thousands of images.
So I am faced with a scaling issue.
Eager preloading every single thumbnail, and reading thousands of files at startup would be slow. Having thousands of images in memory would burden memory too.
A more responsive implementation would be to lazy load only Images when the UltraListViewItem scrolls into view in the the list control. It would also be nice if it release on invisible
A small delay while the icon gets paged in would be acceptable so I could put this into a background thread.
Are there event I can use to implement this?
I am limited to Winform and NetVantage 10.3
Karl,
You might try using the IUIElementCreationFilter interface. When BeforeCreateChildElements is called for an UltraListViewItemUIElement it could be considered a notification that an item is about to be rendered, and if it is not found in a dictionary then it would be the first time it is being rendered.
Michael S.