Implementing an MVVM MessageBus with XAML
- Posted: Jan 20, 2011 at 6:52 AM
- 7,306 Views
- 3 Comments
Loading User Information from Channel 9
Something went wrong getting user information from Channel 9
Loading User Information from MSDN
Something went wrong getting user information from MSDN
Loading Visual Studio Achievements
Something went wrong getting the Visual Studio Achievements
Right click “Save as…”
Using a Messag Bus to communicate between ViewModels is a very common activity when building an application based on MVVM. In this video, I show how you can build a Message Bus that can be created on a per-page basis and easily connected to the ViewModels on a page using XAML.
For a deeper written explanation of this approach, and to download the source code for the project seen in the video, check out my blog post on Slickthought.net.
Comments have been closed since this content was published more than 30 days ago, but if you'd like to continue the conversation,
please create a new thread in our Forums,
or
Contact Us and let us know.
Follow the Discussion
Oops, something didn't work.
What does this mean?
Following an item on Channel 9 allows you to watch for new content and comments that you are interested in. You need to be signed in to Channel 9 to use this feature.What does this mean?
Following an item on Channel 9 allows you to watch for new content and comments that you are interested in and view them all on your notifications page.sign up for email notifications?
Just so everyone is not having to change the xaml in Blend. When you add a object data source it asks you for the key of the object at the top of the dialog window.
Any reason you are not using event aggregators provided by prism?
@Ganesh: Not really. This was more of an effort to illustrate different ways to incorporate XAML and design-time support rather than deal with event routing /messaging per se. PRISM is great, but for a lot of apps it is also overkill so this was just a nice, simple way to get some of the goodness provided by things like Event Aggregator without having to dive into PRISM.
Remove this comment
Remove this thread
close