ScreensScreenFromTopLevel Method

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

Definition

Namespace: Avalonia.Controls
Assembly: Avalonia.Controls (in Avalonia.Controls.dll) Version: 11.3.999
public Screen? ScreenFromTopLevel(
	TopLevel topLevel
)

Parameters

topLevel  TopLevel
The top level for which to retrieve the Screen.

Return Value

Screen
The Screen.

Exceptions

ObjectDisposedExceptionTopLevel platform implementation was already disposed.

See Also