I'm using a Win 8.1 virtual machine inside Parallels Desktop on a MacBook Retina.
I use this code to determine the width of the actual screen
var primaryWidth = System.Windows.SystemParameters.PrimaryScreenWidth;
Unfortunately it delivers a wrong value of 1536 than the expected 1920.
Anyone have an idea?
I cant tell you if this solves the problem but you can try it.
If you are getting different resolution on .NET's
and
than your current resolution settings, you might wanna check out your viewing settings.
To do so, go to your desktop, right click, and select "Screen resolution".
Then, click on "Make text and other items larger or smaller"
After this, click on the Smaller - 100% radio button.
it solves the problem for me once but again , cant say if it will solves your problem. hope it helps