Screen Constructor

Initializes a new instance of the Screen class.

Definition

Namespace: Avalonia.Platform
Assembly: Avalonia.Controls (in Avalonia.Controls.dll) Version: 11.3.999
[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

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

See Also