Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 77050

How to set the SetBackButtonTitle from a ContentView?

$
0
0

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


Viewing all articles
Browse latest Browse all 77050

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>