ScreensScreenFromWindow Method

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

Definition

Namespace: Avalonia.Controls
Assembly: Avalonia.Controls (in Avalonia.Controls.dll) Version: 11.3.999
public Screen? ScreenFromWindow(
	WindowBase window
)

Parameters

window  WindowBase
The window for which to retrieve the Screen.

Return Value

Screen
The Screen.

Exceptions

ObjectDisposedExceptionWindow platform implementation was already disposed.

See Also