Relative Content

Tag Archive for wpftitlebarwindow-chrome

Menu buttons in title bar cannot be clicked with WindowChrome

I am creating an application that I want to have a custom title bar. I am aiming for something similar to what Visual Studio 2022 does, where the icon and menu are in the title bar and the title bar acts the same as a native one. I have had success getting most of it setup; my minimize, maximize, close buttons all work as does dragging the window and double clicking to change maximize state; but when I add a menu with a couple entries the menu buttons cannot be clicked and do not highlight when moused over. It’s almost like the WindowChrome is being drawn on top of them and blocking them. Here’s my code so far: