Skip to main content
Home Forums Silverlight Programming Programming with .NET - General About the Image control
4 replies. Latest Post by mchlSync on March 10, 2008.
(0)
bertpu
Member
72 points
69 Posts
03-08-2008 10:39 AM |
Hello,
When upgrading to silverlight 2.0, I found a difference on the Image control.
In silverlight 1.1, when I set the Source property from one image to another, the image will change directly.
However, in silverlight 2.0, I found that a blank would appear when the image was changing. I guess the blank appears when the new image begins to download and when the new image is downloaded, the new image will appear.
Is my guess right?
Can I eliminate the blank?
Thanks.
mchlsync
Star
14606 points
2,730 Posts
03-09-2008 3:21 AM |
I think you can use downloader to download the image manually and set it to the source when downloading is completed. then, it won't be any blank during downloading.
Cass
Contributor
3157 points
654 Posts
03-09-2008 8:24 AM |
mchlsync:I think you can use downloader to download the image manually and set it to the source when downloading is completed. then, it won't be any blank during downloading.
Where you been Micheal? There is no downloder in SL2B1.
To eliminate the white gap you can cache them before you are setting the location, I haven't played with SL yet but I know what you are refering to similar thing happens in WPF, I had a large library of images so I used Isolated Storage to solve the issue (similar to cookies).
You are using BitmapImage in SL right?
03-09-2008 9:03 AM |
Yes, I am using BitmapImage as the source of the Image control now
mchlSync
03-10-2008 1:46 AM |
Cass:Where you been Micheal? There is no downloder in SL2B1.
Thanks for correction. but, WebClient is just kinda downloader.
Edit: I think you can use downloader webclient to download the image manually and set it to the source when downloading is completed. then, it won't be any blank during downloading.