Navigation bar overlaps title bar when replacing MainPage for a MAUI 6.0 Windows App
See original GitHub issueDescription
This is in relation to https://github.com/dotnet/maui/issues/10710 being closed as fixed. However, the bug is still present in MAUI 6.0, i.e. the LTS product.
Just to confirm that @PureWeen’s fix for 7.0 is good, this only affects 6.0.
.Net 6 with splash page

.Net 7 with splash page

Steps to Reproduce
- Create a new Default MAUI App using .Net 6.0
- Add a new content page call SplashPage.xaml
- In App.xaml.cs change the MainPage initialisation to
MainPage = new SplashPage(); - Add a Loaded event handler in SplashPage.xaml.cs
- In the event handler reset the MainPage to be the default AppShell -
App.Current.MainPage = new AppShell();
Link to public reproduction project repository
https://dev.azure.com/JohnHunter0895/MauiBugs/_git/MauiBugs/branches?_a=all
Version with bug
7.0 (current)
Last version that worked well
Unknown/Other
Affected platforms
Windows
Affected platform versions
Windows SDK 10.0.22000.194
Did you find any workaround?
Tried the same workaround used in https://github.com/dotnet/maui/issues/10710 but this results in spurious padding at the top of the flyout items
Microsoft.Maui.Handlers.WindowHandler.Mapper.AppendToMapping(nameof(IWindow), (h, v) =>
{
(v.Handler.PlatformView as MauiWinUIWindow).ExtendsContentIntoTitleBar = false;
});

Relevant log output
No response
Issue Analytics
- State:
- Created 9 months ago
- Comments:5 (2 by maintainers)
Top Related StackOverflow Question
@PureWeen I’ve bumped all the projects in the solution up to .Net 7 but the Windows project wasn’t happy about that and I ended up having to recreate the project from scratch and manually copy over all the changes from a backup. At least I’m unblocked now. Thanks.
Hi @JohnHunterACS. We have added the “s/needs-info” label to this issue, which indicates that we have an open question for you before we can take further action. This issue will be closed automatically in 7 days if we do not hear back from you by then - please feel free to re-open it if you come back to this issue after that time.