What is the correct way to import IEventAggregator from RegisterTypes? #2781
-
I'm trying to provide the Application
ViewModel
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Or should I use the ContainerLocator? Or is it okay if I choose anything because they're all the same? |
Beta Was this translation helpful? Give feedback.
-
You don't need to do any of that. Just inject it in the VM ctor
Check out the doc topic: https://prismlibrary.com/docs/event-aggregator.html |
Beta Was this translation helpful? Give feedback.
You don't need to do any of that. Just inject it in the VM ctor
Check out the doc topic: https://prismlibrary.com/docs/event-aggregator.html