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
Samarbeid med oss på GitHub
Du finner kilden for dette innholdet på GitHub. Der du også kan opprette og se gjennom problemer og pull-forespørsler. Hvis du vil ha mer informasjon, kan du se vår bidragsyterveiledning.