WPF WindowChrome Fill / Foreground Color

647 Views Asked by At

I am currently trying to keep all the Windows 11 features like the docking preview while still customizing a windows title bar.
I figured that using WindowChrome is my best bet(?)

<WindowChrome.WindowChrome>
    <WindowChrome ResizeBorderThickness="3"
                  GlassFrameThickness="30" />
</WindowChrome.WindowChrome>

But that unfortunately gets rid of the foreground color of the title bar.
I mean - the buttons are still there, but the window title & control button icons are transparent.

Is this the wrong approach? Would there be an easy solution for this? I would like to avoid making a completely custom title bar because of mentioned reasons.

2

There are 2 best solutions below

0
On BEST ANSWER

For the future people with a similar question:
@AZ Software could provide me the necessary docs I was looking for:

4
On

Instead of recreating the window from scratch, have you looked into WPF libraries like MahApps or ModernWPF which include custom windows and titlebars. For example in ModernWPF, you can change the background and foreground of the titlebar.