/// <summary> /// Restores the user password. /// </summary> private void RecoverPassword() { // Show recover password view var viewModel = new RecoverPasswordViewModel(); var view = new RecoverPasswordView { BindingContext = viewModel }; this.Navigation.PushModalAsync(view); }
/// <summary> /// Handles the BindingContextChanged event. /// </summary> protected override void OnBindingContextChanged() { // Remove the event handling from the binding context if (this.currentBindingContext != null) { this.currentBindingContext.Navigation = null; } // Set up the event handling from the binding context this.currentBindingContext = this.BindingContext as RecoverPasswordViewModel; if (this.currentBindingContext != null) { // Set up navigation context this.currentBindingContext.Navigation = this.Navigation; } // Call the base member base.OnBindingContextChanged(); }