I want Dipose cache in window phone 7. In my project I have download Images, after use I Dispose Image by:
Image.sou
To remove a downloaded image from the cache you need to assign it's source to a separate BitmapImage
and set that to null before setting the image's source to null.
BitmapImage bitmapImage = image.Source as BitmapImage;
bitmapImage.UriSource = null;
image.Source = null;
Don't ask me why, but it works.