Hi,
I am using:
NavigationPage.SetBackButtonTitle(this, "Home");
from my HomePage ContentPage XAML to set the main Back text
with my app I have a SettingsContentView which is shown on the HomePage itself
when the user clicks any button on the SettingsContentView it will open another ContentPage e..g ChangePasswordContentPage
From ChangePasswordContentPage how can I make
NavigationPage.SetBackButtonTitle(this, "Back");
instead of:
NavigationPage.SetBackButtonTitle(this, "Home");
because it's actually going back to the SettingContentView and although it's a view of the HomePage ContentPage but it's confusing
so is there any way to do this please?
Thanks,
Jassim
Answers
Hi,
For example if you are navigating from "Create" page to "Edit" page and you want page title as "Edit page" . Then you have write this code NavigationPage.SetBackButtonTitle(this, "Edit");
in First page called after initialization() "Create page"