Skip to main content

ScreenFromWindow Method

Retrieves a Screen for the display that contains the specified WindowBase.

Definition

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

public Screen? ScreenFromWindow(
WindowBase window
)
View Source

Parameters

  WindowBase
The window for which to retrieve the Screen.

Return Value

Screen
The Screen.

Exceptions

ObjectDisposedExceptionWindow platform implementation was already disposed.

See Also

Reference

Screens Class
Avalonia.Controls Namespace