I have a C# program that uses both winforms and WPF and I\'m struggling to get it to work in high DPI environments. Currently, if I remove all WPF projects from the solution
When WPF is loaded into a project, it promotes the process to be System DPI Aware. In order to get around this, first : 1) set [assembly: DisableDpiAwareness] attribute above the namespace declaration in your entry assembly 2) you can add an app.manifest file in your project and add the following :
true/PM
This should render your WinForms and WPF content both at the right target DPI. (This will however fail to scale if you have a multi monitor setup with different DPIs).