Skip to main content

Microsoft Silverlight

Answered Question About the Image controlRSS Feed

(0)

bertpu
bertpu

Member

Member

72 points

69 Posts

About the Image control

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
mchlsync

Star

Star

14606 points

2,730 Posts

Silverlight MVP

Re: About the Image control

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.  

(If this has answered your question, please click on "Mark as Answer" on this post. Thank you!)

Regards,
Michael Sync
Silverlight MVP

Blog : http://michaelsync.net


Cass
Cass

Contributor

Contributor

3157 points

654 Posts

Answered Question

Re: About the Image control

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?

bertpu
bertpu

Member

Member

72 points

69 Posts

Re: About the Image control

Yes, I am using BitmapImage as the source of the Image control now

mchlSync
mchlSync

Star

Star

14606 points

2,730 Posts

Silverlight MVP
Answered Question

Re: About the Image control

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.  

(If this has answered your question, please click on "Mark as Answer" on this post. Thank you!)

Regards,
Michael Sync
Silverlight MVP

Blog : http://michaelsync.net


  • Unanswered Question
  • Answered Question
  • Announcement
Microsoft Communities