sac*_*ner 2 c# event-handling windows-phone-7
我正在研究WP7中的应用程序,我想将一个列表框作为参数传递给client_DownloadStringCompleted方法.
我的代码如下所示,
WebClient client = new WebClient();
client.DownloadStringCompleted += new DownloadStringCompletedEventHandler(client_DownloadStringCompleted);
Run Code Online (Sandbox Code Playgroud)
只需将此行添加到您的代码中:
client.DownloadStringAsync(yourUri, yourListBox);
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
1612 次 |
| 最近记录: |