Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

MAUI how to remove the Title Bar and fix the window size?

How can I remove the Title Bar in MAUI and fix the window size as 800x400 pixels in the Windows version of the application?

TitleBar full size

I searched for a very long time in the Internet, but I found already not actual information for later versions of MAUI released more than a year ago. Why MAUI does not support window resizing and disabling its scaling as conditional WPF, it also uses XAML for window creation, I wish there was such a possibility on the release.

The Title Bar looks broken because it is taller than the close/collapse/maximize buttons.

like image 881
Ярослав Донецкий Avatar asked Sep 06 '25 14:09

Ярослав Донецкий


1 Answers

Not in the shell itself, but in the page that's being displayed inside the shell, you should set the Shell.NavBarIsVisible attribute to false, like so:

<ContentPage
    ...
    Shell.NavBarIsVisible="False" />
like image 96
Édgar Sánchez Gordón Avatar answered Sep 09 '25 03:09

Édgar Sánchez Gordón