×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

EventAggregator - In Plain English

EventAggregator - In Plain English

EventAggregator - In Plain English

(OP)
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

RE: EventAggregator - In Plain English

(OP)
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

RE: EventAggregator - In Plain English

(OP)
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 : 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

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close