Folks, just a quick follow-up. Lazy loading of grid images does work okay
like this:

 

The objects bound to the rows can have an ImageSource property for a column.
The requests for image thumbnails are put into a Queue<> and an event wakes
up the worker thread to pull the requests and make the thumbnails and put
them in a well-known folder. An event from the worker tells the UI that an
image is ready and sets the property of the grid row. I set the property to
something like:

 

new ImageSource(new
Uri(@"C:\ProgramData\mycompany\thumbnails\filehash_wide_high.jpg"))

 

Most of the fiddly code is isolated down in the worker thread. Don't forget
to set UI things back on the UI thread.

 

Greg

_______________________________________________
ozwpf mailing list
[email protected]
http://prdlxvm0001.codify.net/mailman/listinfo/ozwpf

Reply via email to