What is the correct way to pass data between view models?
I've just started with MVVM and I have been reading up on it and doing some examples. I've managed to create an application that will read from the database and then populate into a listbox. I am having difficulty in trying to link up the selected item into another view and then do a bit of processing in that views viewModel. Please can somebody explain to me the correct way to get the currently selected item from view1 listbox and then on view2 label just to output the selected item? Here is my XAML: <local:SecondView Margin="499,30,0,20"> <local:SecondView.DataContext> <v:MainViewModel /> <