Working with Prism 4 Part 3: Composite Command and Pub/Sub Events(www.silverlightshow.net)
submitted by
KMillerr(2072) 4 months, 3 days ago
In this article, you will see how to define multiple modules that can communicate with each other through a combination of CompositeCommands and Prism events. CompositeCommands let you have handlers registered or unregistered in a loosely coupled fashion, and allows you to have multiple handlers (child commands) that will be used by the CompositeCommand. Prism events are for situations that are not necessarily an action->reaction kind of set up where enablement and disablement is needed. You simply define the event type with its strongly typed payload and then subscribe or publish by obtaining the event reference through the EventAggregator. Both of these mechanisms give you a really powerful combination for having loosely coupled communications between composite parts of your application.
|category: Silverlight
|Views: 67
tags:
Silverlight another
Everyones tags:
Your Tags: