积极答复者
silverlight1.1里面的System.Windows.Downloader在slight2里面哪去啦?

问题
答案
全部回复
-
WebClient class.
Code SnippetWebClient webClient = new WebClient();
webClient.DownloadProgressChanged += new DownloadProgressChangedEventHandler(webClient_DownloadProgressChanged);
webClient.OpenReadCompleted += new OpenReadCompletedEventHandler(webClient_OpenReadCompleted);
webClient.DownloadStringAsync(new Uri("http://data.com/resource.xml"));
...
void webClient_OpenReadCompleted(object sender, OpenReadCompletedEventArgs e)
{
if ((e.Error == null) && (e.Cancelled == false))
{
Stream stream = e.Result;
}
}参见
http://msdn.microsoft.com/en-us/library/cc189007(vs.95).aspx
-