I'm trying to make the title bar of a WPF main window automatically adjust its size to the DPI scaling of the monitor that's showing the application.
Unfortunately, I couldn't find anything useful on the internet other than the official example application in WPF-Samples/PerMonitorDPI on GitHub.
The title bar doesn't change its size even in the given application sample.
How to reproduce:
- Start the WPF application sample (see link above).
- Drag the application window to a higher-scaled screen (200%).
- Notice the small title bar of the application window. Everything else scales bigger but not the title bar.