-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Not able to change title bar color in MAUI UWP #19252
Comments
I see you mention .NET 7, could you please try if anything changes when you use .NET 8? You'll always want to (additionally) test the latest available version to see if we fixed already. |
Hi @Rohit123400000000000. 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. |
Hi, I'm having the same issue after updating to .NET8. I'm using MAUI with WinUI however. I do something extremely similar, but to no avail. It's as if the title bar was frozen to the OS defaults. Everything was working flawlessly with .NET 7. My code:
TitleBar.ExtendsContentIntoTitleBar does nothing and using a custom title bar by adding code to WinUI's platform app.xaml works, but the background color cannot be changed. (Like you can add text, but the background color is locked to the OS defaults). It's weird. Screenshot: The code:
Thank you to whoever looks into that ; ) |
We've added this issue to our backlog, and we will work to address it as time and resources allow. If you have any additional information or questions about this issue, please leave a comment. For additional info about issue management, please read our Triage Process. |
@Rohit123400000000000 we have a bigger story to add better titlebar/window customization in MAUI specifically for Windows, but an easy workaround is to just change the |
Hi @Rohit123400000000000. 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. |
@Foda That's great news. I think customizing the title bar should be easy and readily available. It adds a lot of style to an app. As for the workaround, thank you. I will try later. No offense, but when upgrading to .net8 I faced a lot of issues and I'm not ready to deal with that now. It's as if MAUI controls started to behave drastically differently. |
Description
We are not able to change title color of the MAUI UWP application , it is showing like darkgray color, we have to apply many approached but not able to fix that issue.
This is one of the sample code but we was apply many things like set property from the appshell etc. but color is not changed.
it is still show gray color after the title bar in UWP
Steps to Reproduce
No response
Link to public reproduction project repository
No response
Version with bug
7.0.101
Is this a regression from previous behavior?
Yes, this used to work in .NET MAUI
Last version that worked well
Unknown/Other
Affected platforms
Windows
Affected platform versions
No response
Did you find any workaround?
No response
Relevant log output
No response
The text was updated successfully, but these errors were encountered: