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, 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>]
member this.PrimaryScreenWidth : double
member this.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}"/>