Project description

Simple Image Cacher for WP7.

I had found lots of threads, describing image leaking issues. Here is a very simple and customizable image cacher, which should solve the problem by auto-setting image source to null.

 

Also, check out this project (i moved there): jet-image-loader

 

 

Where to look

https://simca.codeplex.com/SourceControl/latest#SimCa/SafeImage.cs - based on ContentControl, it downloads, shows and safely removes image from memory.

https://simca.codeplex.com/SourceControl/latest#SimCa/MainPage.xaml - sample of usage. Just one line of code is important: 

<simCa:SafeImage SafePath="{Binding ImageUrl}"/>

That's it!

 

Special thanks to

http://stackoverflow.com/users/869621/kookiz for basic idea

http://stackoverflow.com/users/2715986/benoit-catherinet for suggestions and code improvement

Last edited Apr 22, 2014 at 4:37 PM by VeTaL, version 7