-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of https://github.com/paulcbetts/PerMonitorDpi
- Loading branch information
Showing
1 changed file
with
18 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
## 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. |