How to change the position of Hamburger menu icon - .Net 8 Maui #21862
Unanswered
VaibhavMethuku01
asked this question in
Q&A
Replies: 2 comments
-
I currently migrate from Xamarin to MAUI and face the same issue. Is there any workaround? Because .NET 7 is out of support, so I must use .NET 8. |
Beta Was this translation helpful? Give feedback.
0 replies
-
I just play a bit around with the Maui Community Toolkit. There is a solution for the Problem: Have a look at the CommunityToolkit.Maui.Sample in MauiProgram.cs there is a snipped for Windows:
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Description
recently upgraded my MAUI project from .Net7 to .Net8 and i"m facing some issues with the hamburger icon placement which is distorted after the upgradation
We have tried adding a renderer which is responsible to set the content off on the Nav bar. Here is the code snippet
WindowHandler.Mapper.AppendToMapping(nameof(IWindow), (handler, view) => { if (view.Handler != null) ((MauiWinUIWindow)view.Handler.PlatformView)!.ExtendsContentIntoTitleBar = false; });
Expected behavior
Position of hamburger menu icon should be below the bar
Actual behavior
But in Net8 it's not working and this is how it looks, the Hamburger menu is on the Nav bar
Steps to Reproduce
Create a .Net 8 Maui project and observe the hamburger menu position.
Link to public reproduction project repository
No response
Version with bug
8.0.20 SR4
Is this a regression from previous behavior?
Not sure, did not test other versions
Last version that worked well
7.0.100
Affected platforms
Windows
Affected platform versions
Windows
Did you find any workaround?
No response
Relevant log output
No response
Beta Was this translation helpful? Give feedback.
All reactions