Reputation: 3913
I'm using Prism to build my application and 19 of my modules need to interact with an control from another module.
Is there any way to expose a control? I really don't want to use the event system because it would too much of the responsibility on my one know to know about the data being passed to it.
Upvotes: 0
Views: 123
Reputation: 1993
You can always create a separate project that holds "Infrastructure" controls that each module references. This way they gain access to say CommonWindow etc..
Upvotes: 0
Reputation: 4268
If you do not wish to use the event aggregator, you could also register something (ie a service, whos interface is defined in your infrastructure dll) with dependency injection that interacts with the control directly.
Upvotes: 1