Screen Resolution Problem In WPF ?
Posted
by Mohammad
on Stack Overflow
See other posts from Stack Overflow
or by Mohammad
Published on 2010-02-10T10:52:00Z
Indexed on
2010/06/15
3:32 UTC
Read the original article
Hit count: 277
I'm gonna detect the resolution with the following code in WPF :
double height = System.Windows.SystemParameters.PrimaryScreenHeight;
double width = System.Windows.SystemParameters.PrimaryScreenWidth;
Current resolution of my screen is 1920*1200, but height
is 960.0 and width
is 1536.0 !!!
What's wrong with it ?
Thanks in advance.
© Stack Overflow or respective owner