3 ms·
Yeah, it's fair to say that the ceiling for what can be developed is higher in WPF. I'm unsure what problems with DPI scaling you're referring to. Last time I
by ripley12 4y ago
Yeah, it's fair to say that the ceiling for what can be developed is higher in WPF.
I'm unsure what problems with DPI scaling you're referring to. Last time I was working on a WinForms app (admittedly not an especially big one) I think I just needed to set the DPI awareness in the manifest and it worked OK. https://learn.microsoft.com/en-us/dotnet/desktop/winforms/high-dpi-support-in-windows-forms?view=netframeworkdesktop-4.8 https://learn.microsoft.com/en-us/dotnet/desktop/winforms/hi...
- alkonaut 4y agoIt works OK up to a point. There are traps everywhere. Some controls scale reasonably well, others don't. There is very little support for any vector drawing so you need to hand-roll resolution switching for assets (Admittedly, pixel based assets in WPF will require the same). Doing anything measure-based in code (rather than designer) such as placing items, requires remembering to manually multiply e.g. dpiScale * 16 to make a margin that will be 16px at 96DPI and 24px at 144DPI and so on. It eventually drives you insane.