Screen Resolution Problem In WPF?

后端 未结 8 1240
孤城傲影
孤城傲影 2020-11-30 00:13

I\'m gonna detect the resolution with the following code in WPF :

double height = System.Windows.SystemParameters.PrimaryScreenHeight;
double width = S         


        
8条回答
  •  被撕碎了的回忆
    2020-11-30 00:30

    you could use this instead: http://msdn.microsoft.com/en-us/library/system.windows.forms.screen.primaryscreen.aspx

提交回复
热议问题