Skip to content
This repository has been archived by the owner. It is now read-only.
Branch: master
Find file History

Latest commit

Fetching latest commit…
Cannot retrieve the latest commit at this time.


Type Name Latest commit message Commit time
Failed to load latest commit information.
Images reorganizing files into recipes folder Mar 7, 2018 reorganizing files into recipes folder Mar 7, 2018

id title brief sdk
Change the Back Button
This recipe shows how to change the Back button that appears in a navigation controller.


The Back button text is related to the Title of the ViewController that it will return to. The sample code demonstrates three different ways the Back button can be set:

  • If the ViewController.Title has not been set, the button text will be Back.
  • If the ViewController.Title has been set, the button will display the same text. In the sample code when the Title property is set and then the ViewController ‘pushed’, the back button will contain the same value: Home.
customVC.Title = "Home";
NavigationController.PushViewController (customVC, true);
  • The button itself can be replaced with a custom UIBarButtonItem using the NavigationItem.SetLeftBarButtonItem. The new button should implement the PopViewControllerAnimated method to behave the same way as the default Back button:
customVC.NavigationItem.SetLeftBarButtonItem (new UIBarButtonItem(
UIImage.FromFile("29_icon.png"), UIBarButtonItemStyle.Plain, (sender, args) => {
}), true);

These screenshots show the three different Back buttons:

Screenshots of updated back button

You can’t perform that action at this time.