Page navigation in silverlight 4 using MVVM pattern

Posted by Archie on Stack Overflow See other posts from Stack Overflow or by Archie
Published on 2010-05-27T08:55:16Z Indexed on 2010/05/28 0:31 UTC
Read the original article Hit count: 974

Filed under:
|
|

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.

© Stack Overflow or respective owner

Related posts about mvvm

Related posts about navigation