SystemParameters.PrimaryScreenWidth Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets a value that indicates the screen width, in pixels adjusted for DPI, of the primary display monitor.
public:
static property double PrimaryScreenWidth { double get(); };
public static double PrimaryScreenWidth { [System.Security.SecurityCritical] get; }
public static double PrimaryScreenWidth { get; }
[<get: System.Security.SecurityCritical>]
static member PrimaryScreenWidth : double
static member PrimaryScreenWidth : double
Public Shared ReadOnly Property PrimaryScreenWidth As Double
Property Value
The width of the screen.
- Attributes
Remarks
Maps to SM_CXSCREEN. See GetSystemMetrics.
XAML attribute usage
<object property="{ SystemParameters.PrimaryScreenWidth}
"/>
Applies to
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.