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)
- C#
- VB
- F#
[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
)
<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 Sub New (
scaling As Double,
bounds As PixelRect,
workingArea As PixelRect,
isPrimary As Boolean
)
[<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.")>]
new :
scaling : float *
bounds : PixelRect *
workingArea : PixelRect *
isPrimary : bool -> Screen
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.