10 Things Silverlight Devs Need to Know About the Windows Runtime: Listing 1.
Making a call in Silverlight with WebClient.
- By Michael Crump
void SearchBtn_Click(object sender, RoutedEventArgs e)
string topic = txtSearchTopic.Text;
string diggUrl = String.Format(
// Initiate Async Network call to Digg
WebClient diggService = new WebClient();
diggService.DownloadStringCompleted += new
void DiggService_DownloadStoriesCompleted(object sender,
if (e.Error == null)
// Call a Method that parses the XML data.
Michael Crump is a product manager that works at Microsoft on the Azure platform. He is a is a developer, blogger and speaker of topics relating to cloud development. He’s passionate about helping developers understand the benefits of the cloud in a no-nonsense way. You can reach him on Twitter at mbcrump or by following his blog at michaelcrump.net.