Created
January 30, 2019 21:37
-
-
Save mackayn/02a743d0d013262d35a0de83eb900c79 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
protected override bool OnBackButtonPressed() | |
{ | |
if (BindingContext is IConfirmNavigationAsync) | |
{ | |
if (BindingContext is ViewModelBase vm) | |
{ | |
vm.ConfirmGoBackCommand.Execute(); | |
} | |
return true; | |
} | |
return base.OnBackButtonPressed(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment