Skip to content

Instantly share code, notes, and snippets.

@rohits79
Created June 15, 2016 02:20
Show Gist options
  • 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