.Net Core Winform 缩放比例不是100%设置界面只能看到一半问题
<PropertyGroup> <TargetFramework>net8.0-windows</TargetFramework> <Nullable>enable</Nullable> <UseWindowsForms>true</UseWindowsForms> <ImplicitUsings>enable</ImplicitUsings> <ApplicationHighDpiMode>SystemAware</ApplicationHighDpiMode> <ForceDesignerDpiUnaware>true</ForceDesignerDpiUnaware> </PropertyGroup>
主要是这两句
<ApplicationHighDpiMode>SystemAware</ApplicationHighDpiMode> <ForceDesignerDpiUnaware>true</ForceDesignerDpiUnaware>