I spent a lot of time trying to figure this out, for devices with a zoom factor it is very difficult to get the actual screen size due to the zoom factor, sometimes 125% or 150% when calls are made for C # objects, the return value is not correct now, so you need make a Windows API call to get the scaling factor and apply the multiplier, the only way I found for non-WPF applications is here
stack overflow
Oscar Marin Jun 24 '19 at 2:41 2019-06-24 02:41
source share