title: Communication between two Silverlight Applications, after opening the second one from the first one
body: <p>I have two Silverlight applications. Let's say names of the applications are like that:
  Site1 and Site2.</p>
  
  <p>I am opening Site 2 from Site1 like that:</p>
  
  <pre><code>System.Windows.Browser.HtmlPage.Window.Navigate(new Uri("http://localhost/Site2"), "_blank").;
  </code></pre>
  
  <p>And I dont want users can open the second web site with just putting URI into the address bar.
  The second web site must only be opened through the first Web Site.</p>
  
  <p>I have read <a href="http://www.codeproject.com/Articles/236861/Communicating-Between-Two-Local-Silverlight-Applic" rel="nofollow">this</a> to communicate between two Silverlight web applications.
  After reading this I have tried to send message to the second Application directly after opening it like that:</p>
  
  <pre><code>    System.Windows.Browser.HtmlPage.Window.Navigate(new Uri("http://localhost/Site2"), "_blank");
     _messageSender.SendAsync("Hi, I am first Web Application");
  </code></pre>
  
  <p>But it is not working. Because it is trying to send message before the second web site opens completely.</p>
  
  <p>So, the real problem is that :<br>
  I want to know that, is the second website opened through the first website or not?</p>