protected override bool OnBackButtonPressed()
        {
            if (BackButtonPressed != null)
            {
                var args = new XNavigationPageBackButtonEventArgs();
                BackButtonPressed(this, args);
                return(args.CancelEvent);
            }

            return(base.OnBackButtonPressed());
        }
        protected override bool OnBackButtonPressed()
        {
            if (BackButtonPressed != null)
            {
                var args = new XNavigationPageBackButtonEventArgs();
                BackButtonPressed(this, args);
                return args.CancelEvent;
            }

            return base.OnBackButtonPressed();
        }
 private async void XNav_BackButtonPressed(object sender, XNavigationPageBackButtonEventArgs e)
 {
     e.CancelEvent = _xNavigation.NavigateBack();
 }