Skip to content

What is the correct way to import IEventAggregator from RegisterTypes? #2781

Answered by brianlagunas
jamesnet214 asked this question in WPF
Discussion options

You must be logged in to vote

You don't need to do any of that. Just inject it in the VM ctor

public void MainViewModel(IEventAggregator ea)
{

}

Check out the doc topic: https://prismlibrary.com/docs/event-aggregator.html

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@jamesnet214
Comment options

Answer selected by jamesnet214
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
WPF
Labels
None yet
2 participants