-
Notifications
You must be signed in to change notification settings - Fork 991
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
迁移到.NetCore3.1后窗口变形严重 #2503
Comments
@199621616 please write in English if you require assistance. @Olina-Zhang is this something you can read? |
@199621616 add |
After migrating WinForm based on. Net framework 4.6.1 to. Net core 3.1, the window is seriously deformed. What did I miss, or did. Net core 3.1 originally? Do we need to readjust according to. Net core 3.1, or do you need to fix it? The left and right windows in the figure below are quite different, and the code has no change. |
add Application.SetHighDpiMode(HighDpiMode.SystemAware); to |
@199621616 @RussKie, maybe this is caused by issue #1122. And this is a by design issue, the default Font size is changed in Core project, |
@199621616, yes this is the most likely reason, depending on values of Please have a look at the docs that detail breaking and other notable changes: |
@thank you very much to vino Wang and @ russkie. After setting the default font to font = new font (New fontfamily ("Microsoft sans serif"), 8F), the problem has been resolved. This issue is closed. |
将基于.Net Framework 4.6.1的WinForm迁移到.Net Core 3.1后窗口变形严重。是我错过了什么,还是.Net Core 3.1本是如此?需要我们根据.Net Core 3.1再调整,还是需要你们修复?
下图左右两个窗口差距很大,代码没有任何变动。
The text was updated successfully, but these errors were encountered: