Xamarin Forms: how to hide back button title?

后端 未结 4 2234
一个人的身影
一个人的身影 2021-02-20 04:54

In my Xamarin Forms iOS application the previous page name is also appearing with the back button in all pages. Is there any way to hide the title of the previous page?

4条回答
  •  梦谈多话
    2021-02-20 05:44

    If you navigate from Page1 to Page2, then in Page1:

            public Page1()
            {
                NavigationPage.SetBackButtonTitle(this, "");
                InitializeComponent();
            }
    

    If everything is correct, in Page2 you will not see the title of navigation bar.

提交回复
热议问题