Forum Xamarin.Forms

Toolbar backbutton

FirmuFirmu Member ✭✭

I want to change the navigation of back button in toolbar. I have 3 pages main page, login page and profile page. After successful login it is navigated to profile page. Form profile page when back button is clicked it navigates back to login page, but i need to navigate to main page. Please do let me know how can I solve this.


  • ComConComCon DEMember ✭✭

    This code in code behind(xaml.cs) will help you

        protected override bool OnBackButtonPressed()
            return false;
Sign In or Register to comment.