Hi,
i am using below code to navigate from one xaml page to another page.but this is not working . it displays "Object Reference" error
NavigationService.Navigate(new Uri("/MainPage", UriKind.Relative));
I am using silverlight 4 with RIA service
Navigationservice is not working in silverlight 4
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.

Manikavelu VelayuthamRank #413 · 6K reputationPosted Aug 26, 2010, 2:46 AM EDT
Page pge = new Page();
pge.NavigationService.Navigate(new Uri("URL",UriKind.Relative));
or
this.NavigationService.Navigate(new Uri("URL",UriKind.Relative));