Search code examples
wpfvirtual-screen

WPF version of VirtualScreen


Is there a WPF version of System.Windows.Forms.SystemInformation.VirtualScreen?


Solution

  • Yes, there is. System.Windows.SystemParameters (in the PresentationFramework assembly) has a number of static VirtualScreen properties: VirtualScreenHeight, VirtualScreenWidth, VirtualScreenLeft, and VirtualScreenTop. It also has properties of the same names with 'Key' appended that return ResourceKeys.

    Found using Reflector.