Opening an image on demand with Silverlight 2 WebClient -


Whenever the user wants to show some images on my Silverlight application, in a folder in my Silver Project Images and I do not want the user to download everything, when he will first load the web page.

I used the Open Redsink method in the image file with a relative address, which is in the folder named after the images and its build is set on the action material and its "Copy to output directory" "The property has always been set.

But I get the following exception in an OpenReadCompleted event: The URI prefix has not been recognized.

Here's the code I used:

  Due WebClient as New WebClient AddHandler webClient.OpenReadCompleted, AddressOf webClient_OpenReadCompleted WebClient.AllowReadStreamBuffering = True WebClient OpenReadAsync (new images ("images / myimage.jpg", UriKind.Relative)) Can anyone tell me how to solve this problem? Thanks to 

to start with taking the images out of the Silverlight project. You want the images to be in the web project so you can then use a normal image tag with an empty source, when you need to download the source set of image uri.


Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -