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

后端 未结 4 1244
傲寒
傲寒 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 20:51

    I have successfully used WpfScreenHelper 0.3.0.0, currently on Github or Nuget, https://github.com/micdenny/WpfScreenHelper

    It does what the .NET framework should have done so many years ago. I needed to check if some coordinates exist on any screen in WPF, as in these:

    • Very germane: Determine if an open WPF window is visible on any monitor
    • Forms-only and inadequate WPF suggestions: Determining if a form is completely off screen

提交回复
热议问题