SystemParameters.PrimaryScreenWidth Property

Definition

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