Skip to content

Instantly share code, notes, and snippets.

@rohits79
Created June 15, 2016 02:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rohits79/28fe38caf52acb0414bc5067407e2e5f to your computer and use it in GitHub Desktop.
Save rohits79/28fe38caf52acb0414bc5067407e2e5f to your computer and use it in GitHub Desktop.
-- Sending Navigation Parameters
var parameters = new NavigationParameters();
parameters.Add("SomeParamater", "SomeParameterValue");
regionManager.RequestNavigate("Navigation", "viewName", parameters);
-- Receiving Navigation Parameters
public class SampleViewModel: BindableBase, INavigationAware
{
...
public void OnNavigatedTo(NavigationContext navigationContext)
{
var value = navigationContext.NavigationParameters["SomeParameter"];
...
}
...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment