From 4de5746854b5c438ece61c1b922ea68064b3ef2a Mon Sep 17 00:00:00 2001 From: Paul Betts Date: Fri, 7 Mar 2014 17:12:27 -0800 Subject: [PATCH 1/2] Create README.md --- README.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..0132fba --- /dev/null +++ b/README.md @@ -0,0 +1,17 @@ +## PerMonitorDpi + +Enable Windows 8.1+ Per-Monitor DPI support for Desktop WPF Apps. Instead of attempting to understand [this long MSDN article](http://msdn.microsoft.com/en-us/library/ms701681(v=vs.85).aspx), take advantage of my personal suffering and use this instead: + +```sh +Install-Package PerMonitorDpi +``` + +### How to Use + +```cs +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. From 90c2f02dcce170804548013f10f002d9e8df9b63 Mon Sep 17 00:00:00 2001 From: Paul Betts Date: Fri, 7 Mar 2014 17:12:40 -0800 Subject: [PATCH 2/2] Update README.md --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 0132fba..77a65ed 100644 --- a/README.md +++ b/README.md @@ -13,5 +13,6 @@ 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.