May 20, 2010 at 2:56 AM
Edited May 20, 2010 at 2:56 AM
Thought I would share what I found out today for all to gain access to the Navigation Service in WP7..
So in your viewmodel you can get this usability via creating a variable as such:
PhoneApplicationFrame root = Application.Current.RootVisual as PhoneApplicationFrame;
this actually has to happen in each click event you want to respond to in your viewmodel this is actually quite nice since it gives you access to the Navigate() method of the NavigationService.
This doesn't require any override of the OnNavigateTo() method of the navservice...