title: Windows phone 7 Toast notification with app in foreground
body: <p>Quick question. 
  I did this:</p>
  
  <pre><code>myChannel.ShellToastNotificationReceived += new EventHandler&lt;NotificationEventArgs&gt;(myChannel_ShellToastNotificationReceived);
  </code></pre>
  
  <p>So if I receive a toast notification while the application is in the foreground the myChannel_ShellToastNotificationReceived function should be called. In that function I have:</p>
  
  <pre><code>void myChannel_ShellToastNotificationReceived(object sender, NotificationEventArgs e)
  {
      Dispatcher.BeginInvoke(() =&gt;
      {
         ApplicationTitle.Text = "Toast Notification Message Received";
      });
  }
  </code></pre>
  
  <p>The problem is that the function is never called and the ApplicationTitle is never changed.</p>
  
  <p>Am I doing anything wrong?</p>