Win32 app and Xaml Island app maximized window title bar height thinner than the normal state

%3CLINGO-SUB%20id%3D%22lingo-sub-2697499%22%20slang%3D%22en-US%22%3EWin32%20app%20and%20Xaml%20Island%20app%20maximized%20window%20title%20bar%20height%20thinner%20than%20the%20normal%20state%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2697499%22%20slang%3D%22en-US%22%3E%3CP%3EThis%20problem%20appears%20in%20every%20win32%20app%2C%20and%20it%20spread%20to%20WinUI%202.6%20apps%20with%20Xaml%20Island.%20On%20my%204K%20screen%2C%20every%20win32%20app%20and%20Xaml%20Island%20app%20maximized%20window%20title%20bar%20height%20will%20be%201mm%20thinner%20than%20the%20normal%20state%2C%20you%20can%20measure%20new%20file%20explorer%20on%20Windows%2011.%20This%20problem%20is%20because%20Windows%207%20has%20a%20border%20around%20windows%2C%20and%20when%20windows%20are%20maximized%2C%20the%20border%20will%20be%20hidden.%20But%20win10%20and%20win11%20hasn't%20border%20around%20the%20window%2C%20this%20logic%20still%20exists%2C%20so%20it%20makes%20uncomfortable%20and%20strang%20experience.%20Any%20Microsoft%20software%20engineer%20can%20mark%20this%20as%20a%20bug%20in%20Windows%20workflow%3F%20This%20is%20really%20an%20anoying%20design-bug.%3C%2FP%3E%3CP%3E%3CA%20title%3D%22Title%20Bar%20Height%20of%20Apps%2C%20when%20maximized%20is%20wrong%22%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fdiscussions%2Ftitle-bar-height-of-apps-when-maximized-is-wrong%2Fm-p%2F1152675%23M23646%22%20target%3D%22_blank%22%3ETitle%20Bar%20Height%20of%20Apps%2C%20when%20maximized%20is%20wrong%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
New Contributor

This problem appears in every win32 app, and it spread to WinUI 2.6 apps with Xaml Island. On my 4K screen, every win32 app and Xaml Island app maximized window title bar height will be 1mm thinner than the normal state, you can measure new file explorer on Windows 11. This problem is because Windows 7 has a border around windows, and when windows are maximized, the border will be hidden. But win10 and win11 hasn't border around the window, this logic still exists, so it makes uncomfortable and strang experience. Any Microsoft software engineer can mark this as a bug in Windows workflow? This is really an anoying design-bug.

Title Bar Height of Apps, when maximized is wrong 

0 Replies