The Downloader object is a special-purpose Silverlight object that provides the ability to download content, such as XAML content, JavaScript content, ZIP packages, or media assets (for example, images). By using the Downloader object, you do not have to provide all application content when the Silverlight plug-in is instantiated. Instead, you can download content on demand in response to application needs. More importantly, you can render downloaded content after it is available, without the need to refresh the entire Web page. Downloader provides functionality for initiating the data transfer, monitoring the progress of the data transfer through events and status properties, and retrieving the downloaded content.
Generally you do not specify the Uniform Resource Identifier (URI) scheme of the Downloader source URI; instead, you specify relative URIs, and use the URI scheme and site of origin that is being used by the host HTML page that contains the Silverlight plug-in.
Note: |
|---|
When you are using the Downloader object, after the Completed event fires, detach all event handlers from the Downloader and then set Downloader to null. |
If you use ZIP file packages for downloader content, create these packages on a Microsoft Windows operating system. Silverlight does not support ZIP files created on Macintosh.