Screen Resolution Problem In WPF?

后端 未结 8 1223
孤城傲影
孤城傲影 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:52

    try these..i believe this could correct the error.....

    System.Windows.Form1.Screen.PrimaryScreen.Bounds.Height; System.Windows.Form1.Screen.PrimaryScreen.Bounds.Widtht;

提交回复
热议问题