Good afternoon (o;
I have a DesktopListBox where I want to display online shop visitors.
Now getting the data via REST API is no issue.
Now what is the best method to paint an image from URL in the PaintCellText event?
The event is fired for each visible row so that would call loads of URLConnections where the time when the image is returned is not known.
thanks for pointers
richard
Be aware that the event will be fired lots of time even when you might think it shouldn’t be. Multiple times, IME. You might be better off caching the images locally somehow - perhaps saving in a dictionary and loading it from there if that cell has a dictionary entry, else load from the URLConnection. Something like that, anyway.
Yepp…seems to work…not that nice as AsyncImage in Swift though (o;