15.10. Local Connections

Some page designs utilize two separate Silverlight controls and need a way to pass information between them. Previously, this could be accomplished only using the HTML DOM methods. Silverlight 3.0 makes this much easier with the local connection API. Let's create a simple example and send some text from one Silverlight control to another:

  1. Open Visual Studio, and create a new Silverlight application called Chapter15.Sender.

  2. Add another Silverlight application to the solution called Chapter15.Receiver (opt not to create another web hosting project).

  3. Open Chapter15.SenderTestPage.aspx.

  4. You want to display the Chapter15.Receiver project on the same page, so add another Silverlight control beneath the existing one by copying ...

Get Introducing .NET 4.0: with Visual Studio 2010 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.