Title NOT displaing

MAGIC MAGIC 121 Reputation points
2021-09-21T00:29:53.793+00:00

Why is the Title NOT displaying?

133812-001.jpg133756-002.jpg

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,295 questions
0 comments No comments
{count} votes

Accepted answer
  1. JarvanZhang 23,951 Reputation points
    2021-09-21T02:12:15.137+00:00

    Hello MAGICMAGIC-5864,​

    Welcome to our Microsoft Q&A platform!

    Do you use the NavigationPage in your project? The page's title is displayed on the navigation bar. To show the title, please place the MainPage into navigation stack to make the navigation bar display first.

       public partial class App : Application  
       {  
           public App()  
           {  
               InitializeComponent();  
               MainPage = new NavigationPage(new MainPage());  
           }  
       }  
    

    Here is the related doc, you could refer to it.
    https://learn.microsoft.com/en-us/xamarin/xamarin-forms/app-fundamentals/navigation/hierarchical#performing-navigation

    Best Regards,

    Jarvan Zhang


    If the response is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

0 additional answers

Sort by: Most helpful