Composite events in locally scoped regions with Prism (CAL)

Posted by Shaddix on Stack Overflow See other posts from Stack Overflow or by Shaddix
Published on 2010-03-12T09:10:36Z Indexed on 2010/03/12 9:27 UTC
Read the original article Hit count: 472

Filed under:
|
|

I'm starting to train Prism (CAL) with a small application and faced some problems.

I'm creating multiple instances of my MainView, which itself contains some regions, and display them in the Shell. I'm using locally scoped regions to easily handle view injections within my MainView.

Currently I'm searching for a way of communication between the views (viewModels) inside the MainView. Composite events could do it, but when I publish those events, they are handled in all instances of my MainView, which I really don't want.

Is there a way of raising "locally scoped" composite events like with locally scoped regions? Or may be there's a better way of communicating between views in my case?

© Stack Overflow or respective owner

Related posts about c#

Related posts about prism