Skip to main content
Home Forums Silverlight Programming Programming with .NET - General Error display image downloaded from a WebClient
5 replies. Latest Post by Allen Chen – MSFT on May 28, 2008.
(0)
paolo32
Member
66 points
51 Posts
05-25-2008 4:05 PM |
i'm downloading an image with a WebClient, and then loading the stream into a bitmapImage, and then displaying it into an Image control, but for some strange reason, if i run the app without stopping the code anywhere, the image doesnt display into the control, instead if i stop the code, and go through the whole thing using F11, then it works.. Even stranger is that if i press F5 after stepping through part of it, then it still doesn't diplay.. Can anyone help? I'm using VB, not c#. I also just noticed that if i run the code that displays the image under InitializeComponent, then it works, if instead a button pressed event executes it, it doesn't display..
mchlsync
Star
14606 points
2,730 Posts
05-26-2008 4:02 AM |
I think the image path is incorrect or you may get null instead of picture stream.. Please check the path.. or show us the structure of your projects and the code that you wrote.
05-26-2008 10:26 AM |
No, that's not the case because i just found out that it's actually loading the jpg, but it's like as if it weren't refreshing the image control, because as soon as i change the width of the image control, the image draws the image i just told it to load.. Is there a better way to get it to "refresh"?Thanks anyway for the replyPaolo32
Allen Ch...
13862 points
1,803 Posts
05-27-2008 1:26 AM |
Hi:
This is a bug that has been fixed in Beta 2.
Regards
05-28-2008 11:24 AM |
Oh ok, thanks, but beta 2 isn't out yet, right? I mean, under the "Get Started" page, i only see the beta 1 runtimes.. is that correct?Thanks a lot for the quick reply directly from Microsoft,
Paolo32
05-28-2008 10:12 PM |
paolo32: Oh ok, thanks, but beta 2 isn't out yet, right? I mean, under the "Get Started" page, i only see the beta 1 runtimes.. is that correct?Thanks a lot for the quick reply directly from Microsoft, Paolo32
Silverlight 2 Beta 2 will be released very soon.