Forum Xamarin.Forms
We are excited to announce that the Xamarin Forums are moving to the new Microsoft Q&A experience. Q&A is the home for technical questions and answers at across all products at Microsoft now including Xamarin!

We encourage you to head over to Microsoft Q&A for .NET for posting new questions and get involved today.

How to get a Back button on Windows Phone 8.1 ?

JohnHardmanJohnHardman GBUniversity admin
edited July 2015 in Xamarin.Forms

The code that I am using to display a back button works on all platforms other than Windows Phone 8.1. It is fine on Android, iOS, Windows Phone 8.0 and WinRT / Windows. Does anybody know what I need to do to get the back button working on Windows Phone 8.1 ?

    public static void SetNavigationBarAndBackButton(
        ContentPage contentPage, 
        bool showBackButton,
        String backButtonText)

        if (showBackButton)
                backButtonText != null ? backButtonText : "Back"); // TODO - get from resources

        NavigationPage.SetHasNavigationBar(contentPage, true);
Sign In or Register to comment.