SkillAgentSearch skills...

PerMonitorDpi

Enable Windows 8.1+ Per-Monitor DPI support for Desktop WPF Apps

Install / Use

/learn @anaisbetts/PerMonitorDpi
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

PerMonitorDpi

Enable Windows 8.1+ Per-Monitor DPI support for Desktop WPF Apps. Instead of attempting to understand this long MSDN article, take advantage of my personal suffering and use this instead:

Install-Package PerMonitorDpi

How to Use

public MainWindow()
{
    new PerMonitorDpiBehavior(this);
}

To observe the difference, attach a normal monitor to a Surface Pro 2 or other Retina-DPI monitor, then move your window between the two monitors. Per-Monitor DPI apps will stay sharp, normal apps will have blurred text on the Retina monitor.

What happens on older versions of Windows?

The Right Thing™ :) Older versions of Windows will use the system-wide DPI information instead.

View on GitHub
GitHub Stars51
CategoryCustomer
Updated2y ago
Forks15

Languages

C#

Security Score

80/100

Audited on Apr 23, 2023

No findings