question

MAGICMAGIC-5864 avatar image
0 Votes"
MAGICMAGIC-5864 asked JarvanZhang-MSFT answered

Title NOT displaing

Why is the Title NOT displaying?

133812-001.jpg133756-002.jpg


dotnet-xamarinformsdotnet-xamarinessentials
001.jpg (47.1 KiB)
002.jpg (14.6 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

JarvanZhang-MSFT avatar image
0 Votes"
JarvanZhang-MSFT answered

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://docs.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.


5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.