Is there a WPF equaivalent to System.Windows.Forms.Screen?

后端 未结 4 1247
傲寒
傲寒 2021-02-01 20:11

I\'m trying to create a WPF window that will encompass the entire Desktop working area. In WinForms I\'d do this by getting the Union of all the bounds in System.Windows.F

4条回答
  •  一个人的身影
    2021-02-01 21:13

    You could try SystemParameters.VirtualScreenWidth and associated parameters. That might not provide as good as a result as continuing with the WinForms API.

    The only downside I can see with the WinForms type is an extra dependency and the larger working set related to that.

提交回复
热议问题