(X) Hide this Watch the recordings of our recent webinars: Switch or no switch: Can I build my business apps in LightSwitch and Switching on the Cloud for Silverlight by Gill Cleeren
Our next webinar is on May 11th: Getting started with the Silverlight 5 Beta. Join it!
Skip Navigation LinksHome / Articles / View Article

Silverlight: Downloading Zipped files with the WebClient

+ Add to SilverlightShow Favorites
0 comments   /   aggregated from Laurent Bugnion (GalaSoft) on Mar 23, 2008  /  original article
(0 votes)
Categories: Samples , Tips and Tricks

In the "old" alpha edition of Silverlight, you could use the Downloader class to download a zip file containing one or many packed media elements (images, videos). The Downloader provided a progress report (to update a progress bar, for example). After the download was completed, you could use the Image.SetSource or MediaElement.SetSource method to directly unpack one file from the downloaded zip file.

In Silverlight 2 beta, the interfaces changed, but you can still do the same operations. Let's see how.

Download and Demo
  • A demo can be seen here.
  • The source code is available here.
  • Note: To save space, I removed the media zip file from the source code. It is available as a separate download here.



Comments RSS RSS
No comments

Add Comment


Please add 7 and 4 and type the answer here: