Hello, I am prototyping a windows phone 7 application in silverlight. I am trying to use MVVM pattern in my application. I have the following situation:
I navigate from one view1 (page) to another view2 (page) using NavigationService.Navigate("uri of next page") method [Please note NavigationService is a sealed class, so cannot be overriden]. Basically, View2 is not initialized until View1 navigate to it.
I bound View1 and View2 to same ViewModel. So, app is launched - launches View1 and ViewModel and gets a deserialized object. On getting this deserialized object ViewModel sends a message to View1 to navigate to View2 (which is also bound to same type of ViewModel but another instance).
So, my questions is: How can I pass the Object from one View1 to View2 when View2 is not controlled/created by View1 (View1 just navigates to View2).
I hope it is clear. I will continue to monitor to edit it per your comments. Thanks
EDIT: Essentially, I would like one view to get data that I can bind to next view. I would like to navigate to next view based on the type of object I get from http request. This way, if there is any error, I will stay on present view (and not move to next view).