Meysam Javadi
Meysam Javadi

Reputation: 1404

Pass an object between ViewModels in Silverlight

i have a ViewModel that have a Method to receive a Func<Uri,bool> for navigation and a button that i implement ICommand which execute that method(i instantiate ViewModel in Code behind and pass Navigate of Frame to that).

i navigate between pages properly but there is a no idea to pass an object(e.g Person) to another page because there is NO association between ViewModels (also i can't use any FrameWork and i don't want to use QueryString)

Upvotes: 0

Views: 552

Answers (1)

Alex Paven
Alex Paven

Reputation: 5549

If the answer you found is to use some form of aggregator similar to the Messenger class in MVVM Light then I fully endorse it. Don't forget to mark the question as answered if it solved your problem (even if it's your own answer), and maybe even provide some details on what choice you settled on.

Upvotes: 1

Related Questions