Krypton-Suite / Standard-Toolkit

An update to Component factory's krypton toolkit to support .NET Framework 4.6.2 - 4.8.1 to .NET 6 - 8
BSD 3-Clause "New" or "Revised" License
403 stars 61 forks source link

[Feature / Bug fix]: Palette and user control set images (Custom and built in) are not scaled corect within dpi scenarios #558

Open Smurf-IV opened 2 years ago

Smurf-IV commented 2 years ago

As part of the investigation into fixing #441 (and previous knowledge of #487), has led to the following issues that need to be sorted:

PWagner1 commented 2 years ago

.net462 does not have the OS events

@Smurf-IV I would wait until the 'old' .NET Framework is retired (or at least the 4.6.x line is) before considering doing this

Smurf-IV commented 2 years ago

.net462 does not have the OS events

@Smurf-IV I would wait until the 'old' .NET Framework is retired (or at least the 4.6.x line is) before considering doing this

It's as simple as this in the code:

#if !NET462
            DpiChanged += OnDpiChanged;
#endif

It'll be the documentation for enabling such, and the differences in the app.config settings that will be difficult to "Make clear" regardless.

Smurf-IV commented 2 years ago

Notes / reminders; whilst I back stuff out: image image