Search code examples
silverlightmvvmsilverlight-4.0

Navigate through pages in mvvm in Silverlight 4


I have been searching on how to navigate through the pages in Silverlight 4 (navigation application) when I have implemented MVVM pattern. But nothing I found satisfied me.

I have a main page which has frame in it. In that frame I load home page which does simple URI mapping. But now I want to go to New Page on button's click event.


Solution

  • I used this:

    this.NavigationService.Navigate(new Uri("/NewPage", UriKind.Relative));