Created
June 15, 2016 02:20
-
-
Save rohits79/28fe38caf52acb0414bc5067407e2e5f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- 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