覆盖UI到120 DPI [英] Coverting UI to 120 DPI

查看:71
本文介绍了覆盖UI到120 DPI的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,
我在C#.NET 3.5中有一个WinForm项目.用户界面在96 DPI分辨率下看起来很完美,但是如果分辨率为120 DPI,则会截断文本和/或与某些控件重叠,这会使所有控件比96 DPI大25%.
使用AutoScaleMode没有帮助.
我们项目的新要求是使UI适应120 DPI分辨率,或者适应120& amp;如果可能,则为96 dpi.
有没有一种方法可以一次固定所有UI?
如果不是这样的话,最好的解决方法是什么?

Hi all,
I have a WinForm project in C# .NET 3.5. The UI looks perfect on 96 DPI resolution but clips text and/or overlaps some controls if the resolution is 120 DPI bcz its making all controls 25% bigger than 96 DPI.
Using AutoScaleMode is not helping.
The new requirement for our project is to fit UI for 120 DPI resolution or both 120 & 96 dpi if possible.
Is there a way by which all UIs can be fixed in one shot?
If not what is the best work around for such problem?
Any help would be highly appreciated.

推荐答案

在我的情况下,解决方案是AutoScaleMode = DPI,并以96 DPI分辨率编译所有程序集.
The solution in my case is AutoScaleMode = DPI, and compile all the assemblies in 96 DPI resolution.


这篇关于覆盖UI到120 DPI的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆