Skip to content
Enable Windows 8.1+ Per-Monitor DPI support for Desktop WPF Apps
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.nuget
Content
Properties
.gitattributes
.gitignore
COPYING
PerMonitorDpi.csproj
PerMonitorDpi.nuspec
PerMonitorDpi.sln
PerMonitorDpiBehavior.cs
README.md
SafeNativeMethods.cs

README.md

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.

You can’t perform that action at this time.