4
Shouts

Working with Prism 4 Part 3: Composite Command and Pub/Sub Events

published 479 days, 6 hours, 26 minutes ago posted by KMilKMil 482 days, 17 hours, 37 minutes ago
Saturday, January 28, 2012 11:04:38 PM GMT Wednesday, January 25, 2012 11:53:22 AM GMT

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: Metro | clicked: 38 | | source: www.silverlightshow.net | show counter code
tags: Prism

1 comment posted.

To post your comment please login or signup