title: how to wait for webclient OpenReadAsync to complete
body: <p>I am using WebClient to download some stuff from internet in Windows Phone 8.1 app.
  Below is the sample code i am using in my app - where i am calling below method, but my webclient is not waiting to complete the read operation and returning immediately after OpenReadAsync call.</p>
  
  <p>how can i make sure that my method return operation must wait till OpenReadCompleted event is completed?
  I have seen multiple similar questions, but couldn't find a solution.</p>
  
  <pre><code>MyCustomObject externalObj;  // my custom object
  
  private static void CheckNetworkFile()
  {
      try
      {
          WebClient webClient = new WebClient();
          webClient.OpenReadCompleted += (s, e) =&gt;
          {
            externalObj = myReadWebclientResponse(e.Result); // my custom method to read the response
          };
  
          webClient.OpenReadAsync(new Uri("http://externalURl.com/sample.xml", UriKind.Absolute));                
      }
      catch (Exception)
      {
        externalObj = null;
      }
  }
  </code></pre>