Page navigation in silverlight 4 using MVVM pattern
- by Archie
Hello,
I have a a navigation application developed in Silverlight 4. It has a main page which contains a frame. I load a particualr view in that frame and I know that I can use NavigationService to navigate to other page which would be loaded in the same frame.
But my question is how it can be done using MVVM?
To get the frame do I need to pass the reference of the page?
Also, as per my knowledge one view is not aware of any other views. So what is the best way to make them aware of each other? I have heard of Controller and Mediator but how shall I implement them so as to get the Frame of the mainpage?
It would be very helpful if anyone can give me the example or probably sample code for this.
Thanks in advance.