Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
Chapter 6 <cmd:EventToCommand Command="{Binding AddPersonCommand}" PassEventArgsToCommand="True"></ cmd:EventToCommand> </i:EventTrigger> </i:Interaction.Triggers> </Button> See also For more information on MVVM, have a look at the other recipes in this chapter. Communicating between different ViewModels Applies to Silverlight 3, 4, 5 and WP7 Often, you'll find yourself in need of sending messages between ViewModels. A very typical example would be: you've got a View with a ListBox , and once an item is selected, you want that item to be displayed in detail in another View. In other words, the standard master-detail requirement. How do you achieve this with MVVM? If you didn't follow the pattern, you could easily say: "well, I need to execute a method on ViewModel B when something happens in ViewModel A, so I'll keep a reference to ViewModel B in ViewModel A, so I can call the method when