In Windows 11 22H2 Microsoft changed how option
Settings > Personalization > Color > Show accent color in title bars and windows borders
works (compared to 21H2). Now it is forced on all windows. Is it possible to disable it on custom windows?
I expected that CaptionHeight would control this, but makes no difference.
<WindowChrome
CaptionHeight="0"
GlassFrameThickness="-1"
UseAeroCaptionButtons="True" />
TitleBar.Height is not changeable.
Any other suggestions or is it a bug in Windows 11 so the Mica effect can be applied on the entire window including the title bar?
You could use the
AppWindowclass in the Windows App SDK to change the colour of the title bar, e.g.: