Changing navigation bar Back button text in PCL

JassimRahmaJassimRahma USMember ✭✭✭

Hi,

I have a PLC Xamarin.Forms project.

It created three projects, the common, iOS and Droid.

I created a page in the common because that's the place I guess I should create all my pages in it.

In that page, I want to change the back button text so I referred to this question..

https://forums.xamarin.com/discussion/2906/custom-title-on-back-button-of-a-navigationbarcontroller

so I used:

NavigationController.NavigationItem.BackBarButtonItem = new UIBarButtonItem("Go Back", UIBarButtonItemStyle.Plain, null);

but I am getting:

How to fix this please?

Thanks,
Jassim

Sign In or Register to comment.