Declined
Last Updated: 10 Aug 2021 12:57 by ADMIN
Simon
Created on: 29 Jul 2021 06:55
Category: Window
Type: Feature Request
0
RadWindow: per-monitor DPI awareness

Hi,

our company is slowly rolling out high-DPI laptops to our users. On such devices, Windows automatically enables DPI scaling, using a value of 125% or 150%, depending on the screen's resolution. In combination with an external (unscaled) monitor, this causes our application, to appear blurry on the scaled screen.

Windows has built-in functionality to reduce the blurring, however, this only works on the main screen. If you connect a secondary screen and set that as your main screen, the application will always appear blurry on the laptop screen.

My understanding of the topic is that WPF is DPI aware - but on the system level. So it does not cope well with monitors that have different DPI settings. However, I found a tutorial on Microsoft Docs (https://docs.microsoft.com/en-gb/windows/win32/hidpi/declaring-managed-apps-dpi-aware?redirectedfrom=MSDN), hinting that it is possible to make WPF windows per-monitor DPI aware. Unfortunately, this workaround requires you to inherit your window class from their utility class.

Since all of our windows already inherit from RadWindow, I have no chance to include this without copying either their base class or RadWindow. Having RadWindow support per-monitor DPI awareness would be a great feature to have. Or is there already a way to support this?

 

Best Regards,

Simon Müller

Hofmann Fördertechnik GmbH

 

PS: Why does the first feature form in the feature request workflow (the one, where it first searches for similar requests) not let me select the control/area I am searching for like the one for private tickets? I almost submitted this request for the Area "All (Multiple Controls)" because of that.


3 comments
ADMIN
Martin Ivanov
Posted on: 10 Aug 2021 12:57

Hello Simon,

It is great to hear that the article was useful. Thank you for letting me know about the working solution.

Regards,
Martin Ivanov
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Simon
Posted on: 10 Aug 2021 12:10

Hi Martin,

thank you for your answer. Turns out, I somehow managed to oversee the big purple notification block on top of my linked article which links to the same github page you mentioned. After applying the manifest changes from the github link, the scaling now works on a per-monitor basis just as expected - so this feature request is kind of superfluous, at least on windows 10+.

Thanks again and have a nice week

Simon Müller

Hofmann Fördertechnik GmbH

 

 


ADMIN
Martin Ivanov
Posted on: 05 Aug 2021 06:28

Hello Simon,

Note that the referenced article targets Windows 8.1 development. With Windows 10, you can enable the DPI awareness using the App.config or app.manifest. This approach is described in the following GitHub documentation. Can you please try this and let me know if it helps?

About the feature request form, I've forwarded your feedback to the corresponding team.

Regards,
Martin Ivanov
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.