EventAggregator - In Plain English
EventAggregator - In Plain English
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
RE: EventAggregator - In Plain English
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
RE: EventAggregator - In Plain English
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 : http://community.spiceworks.com/topic/914653-wpf-p...
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