Is it possible to automatically adjust the size of the title bar in WPF based on monitor DPI scaling?

74 Views Asked by At

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:

  1. Start the WPF application sample (see link above).
  2. Drag the application window to a higher-scaled screen (200%).
  3. Notice the small title bar of the application window. Everything else scales bigger but not the title bar.
0

There are 0 best solutions below