I added a menu in my .NET maui app with the following xaml:
Code
When I built the solution ad ran it with Windows Machine selected, the menu showed up properly except the word HOME was after it. So the menu displayed was:
Passwords Groups Tools Exit HOME
So How do I remove the word HOME from the menu display?


Rajkiran SwainRank #165 · 14.4K reputationPosted Apr 17, 2023, 3:58 PM EDT
Amit MohantyRank #112 · 20K reputationPosted Apr 18, 2023, 1:21 AM EDT
To remove it, you need to set the
Titleproperty of theContentPageto an empty string.Here's an updated XAML snippet:
By setting the
Titleproperty to an empty string, you're telling the app not to display any text after the menu bar items.Tuhin PaulRank #7 · 71.9K reputationPosted Apr 18, 2023, 1:58 AM EDT
When you build a .NET application that includes XAML files, the XAML is typically compiled into BAML (Binary Application Markup Language) format, which is essentially a binary representation of the XAML code. The BAML is then embedded as a resource in the application's assembly.
At runtime, the BAML is loaded into memory and parsed by the WPF (Windows Presentation Foundation) or Xamarin runtime. The XAML code is then used to construct the user interface elements defined in the XAML, which are rendered on the screen.