Skip to main content

Screen Constructor

Unstable.

Note: This API is unstable and may change in a future release.

Initializes a new instance of the Screen class.

Definition

Namespace: Avalonia.Platform
Assembly: Avalonia.Controls (in Avalonia.Controls.dll)

[UnstableAttribute("This API may be removed in Avalonia 12. If you depend on this API, please open an issue with details of your use-case.")]
public Screen(
double scaling,
PixelRect bounds,
PixelRect workingArea,
bool isPrimary
)

Parameters

  Double
The scaling factor applied to the screen by the operating system.
  PixelRect
The overall pixel-size of the screen.
  PixelRect
The actual working-area pixel-size of the screen.
  Boolean
Whether the screen is the primary one.

See Also

Reference

Screen Class
Avalonia.Platform Namespace