I'm just starting out with Silverlight and also with the MVVM model. When performing page navigation and sending arguments from one page to another, .. is the use of querystring the most accepted method?
It seems to be a big confusion on how passing arguments while performing page navigation should be performed. At least I find several topics about this on various web resources, but no one seems to agree upon a "best practice" method.
NOTE: The below solution of using query strings in the NavigationContext works for both in and out of browser.
You normally set your UriMapper something like this:
And then to get the NavigationContext into the view model, you add a helper to your View like so:
And then you have an attached property helper like so (I modified this from someone else, though I forgot who):
And then add the following to your ViewModel: