ExtendsContentIntoTitleBar and wrong window top border color
See original GitHub issueDescribe the bug
In WinUI 3 project, the top border of window is drawn black when ExtendsContentIntoTitleBar is true.
Steps to reproduce the bug
- Create ‘Blank App, Packaged (with WinUI 3 in Desktop)’
- Set
ExtendsContentIntoTitleBartotruein the MainWindow constructor
Expected behavior
No response
Screenshots

NuGet package version
WinUI 3 - Windows App SDK 1.0
Windows app type
- UWP
- Win32
Device form factor
Desktop
Windows version
Windows 10 (21H2): Build 19044
Additional context
No response
Issue Analytics
- State:
- Created a year ago
- Reactions:7
- Comments:9 (1 by maintainers)
Top Results From Across the Web
Custom Title bar showing up white-ish in WinUI 3
In my case, I was able set the tittle bar to the color defined in the xaml by setting the WindowCaptionsBackground and ...
Read more >Title bar customization - Windows apps
If ExtendsContentIntoTitleBar is set to false , the alpha channel is always ignored for all AppWindowTitleBar color properties. Reference: ...
Read more >Accent color for window border BUT NOT title bar?
Do export that Registry key before starting to change anything so you can get back to normal if it all starts to go...
Read more >Line black on top border windows gnome 44
In many applications appear border on top windows: - gnome-shell 44. - fedora 38. - xorg mode or wayland this error/bug appear.
Read more >How To Change Window Border Color In Windows 10
Change window border color via Color and Appearance Note that this method works only if you already have turned on window border color...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

A workaround:
This bug is still present in the 1.1 version.