Folks, I have a need to lazily load image thumbnails for display in DataGrid
rows. I need that sort of effect you see in Windows Explorer tile view where
the items appear instantly but the images progressively load and render.

 

Before I start coding this from scratch I thought it might be worth asking
if anyone has experience in this sort of thing. In my case, the full sized
(~4MB) images are in a folder and I cache thumbnails of different sizes in
another common folder location. I have an old WinForms app that generates
and uses these cached thumbnails and it works nicely. Now I have to do the
same thing in WPF and try to do it with binding in a way that doesn't "fight
the system".

 

I have a few handy MarkupExtension classes already that replace strings and
icons in the XAML. Perhaps I could write a "smarter" one that lazy loads
images, but I'm not sure how the asynchronous arrival of the image would
update the UI, nor is it clear how pending loads would be cancelled if the
user navigates away to a different screen.

 

Anyway, comments on this general issue would be welcome, before I hoe into
the coding and possibly waste time.

 

Greg

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

Reply via email to