I need application always has the fixed, 100% scale, even if system settings are 200% per monitor or per whole system

MERUN KUMAR MAITY 576 Reputation points
2024-08-03T21:54:46.15+00:00

Is there a way to disable scaling for all the WPF application even if windows has some scale per monitor or system-wide scale?

I need to have WPF windows that is always 1:1 with physical pixels (DPI is always 96), and by this time I found no way to do this: application manifest or API methods for the awareness are useless, they just changing ways how the content is being scaled: as a bitmap or by the application. I need application always has the fixed, 100% scale, even if system settings are 200% per monitor or per whole system. Do you guys know some ways that could help?

Windows Presentation Foundation
Windows Presentation Foundation
A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
2,762 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,858 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Bruce (SqlWork.com) 64,566 Reputation points
    2024-08-03T22:26:04.5366667+00:00

    96 Dpi is a pretty low res monitor. Mine is 218 dpi. Anyway see this thread

    https://stackoverflow.com/questions/13858665/disable-dpi-awareness-for-wpf-application


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.