Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

EventAggregator - In Plain English

Status
Not open for further replies.

1DMF

Programmer
Jan 18, 2005
8,795
GB
Hi,

I've been getting no-where fast trying to understand the EventAggregator paradigm.

Is any one able to explain this in plain English with clear examples that make sense.

Tickerblahblah isn't making any sense and the examples don't explain what .cs files have what code in, what is instantiating the global aggregator, where it resides, etc..

I'm in a position where I can't get a simple button click to work without understating this paradigm, why it is so damn complicated is a mystery and would appreciate some hand holding.

Regards,

1DMF

"In complete darkness we are all the same, it is only our knowledge and wisdom that separates us, don't let your eyes deceive you."

"If a shortcut was meant to be easy, it wouldn't be a shortcut, it would be the way!"
Free Electronic Dance Music
 
I've given up with the Stock Trader example app, I have hunted the code for hours and cannot find the following...

1. Global eventAggregator declaration
2. Global eventAggregator instantiation
3. ModelView instantiations passing in the required global eventAggregator

I'm obviously missing something fundamental here but can't see the wood for the trees!

"In complete darkness we are all the same, it is only our knowledge and wisdom that separates us, don't let your eyes deceive you."

"If a shortcut was meant to be easy, it wouldn't be a shortcut, it would be the way!"
Free Electronic Dance Music
 
I tried to replace my Unity bootstrapper with MEF, which I think was providing the mysterious eventAggregator, but just couldn't work out how to populate the regions with my view, it's all too complicated for my tiny brain.

So I went back to Unity and implemented my own static class helper to instantiate the eventAggregator that gets passed around the app, which is now working and giving me a global eventAggregator enabling communication between the controls (buttons) view and the DataGrid view.

However, now I have my events firing, I have found the bound ObservableCollection on the DataGrid view is not reflecting changes to the ModelView collection?

I have this thread on spiceworks :
I would appreciate anyone's input as to why my view doesn't update.

Thanks,
1DMF


"In complete darkness we are all the same, it is only our knowledge and wisdom that separates us, don't let your eyes deceive you."

"If a shortcut was meant to be easy, it wouldn't be a shortcut, it would be the way!"
Free Electronic Dance Music
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top