Project Description
This code sample implements Mediator design pattern in Silverlight.

The Mediator design pattern is briefly described here and can be represented by following UML class diagram:

In this implementation, three loosely coupled Silverlight applications are hosted on the same page and communicate with each other by raising the events which trigger actions in other Silverlight applications subscribed to these events through Mediator. Separate (possibly invisible) Silverlight application could serve as a Mediator or, as shown in this sample, Mediator could be one of these applications interacting with each other as long as others know its name. Mediator doesn't have to know anything about other Silverlight applications communicating through it but merely expose and register itself on the page.

This sample is compatible with SharePoint 2007 and can help in implementing Mediator design pattern with SharePoint web parts.

Last edited Nov 27, 2008 at 5:14 AM by alekseys, version 7