title: Unable to attach an event handler to my control?
body: <p>I'm working my way (slowly) through my first windows phone 7 app, and what I'm trying to do is attach the LoadCompleted event to a web browser control (so I can then invoke some javascript on the page to auto login to my helpdesk).</p>
  
  <p>The problem is I can't figure out how to attach the event to my control. MSDN gives this code for the handler but I'm clueless:
  public event LoadCompletedEventHandler LoadCompleted</p>
  
  <p>Can someone help me out with the fix to my function below to make it work with the loadcompleted event?</p>
  
  <pre><code>    private void PageLoadCompleted(object sender, System.Windows.Navigation.NavigationEventArgs e) 
      {
          if (e.Uri.ToString() == MainPage.HelpDeskUrl)
          {
              MessageBox.Show("Page is loaded!");
              // invoke login code will go here
          }
      }
  </code></pre>