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

NavigationPage.SetBackButtonTitle only in constructor?

$
0
0

Is there any way to set the title of the back button outside of the constructor of a page? Whenever I set it inside the constructor it works perfectly fine, but if I try and set it inside a method it does not work.

My goal is to have the back button title programatically set. As an example, when I navigate to PageY from PageX I want the back button title to say "Cancel", but when I navigate to PageZ from PageX I want it to be the normal "Back"


Viewing all articles
Browse latest Browse all 58056

Trending Articles



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