ScreenFromTopLevel Method
Retrieves a Screen for the display that contains the specified TopLevel.
Definition
Namespace: Avalonia.Controls
Assembly: Avalonia.Controls (in Avalonia.Controls.dll)
- C#
- VB
- F#
public Screen? ScreenFromTopLevel(
TopLevel topLevel
)
Public Function ScreenFromTopLevel (
topLevel As TopLevel
) As Screen
member ScreenFromTopLevel :
topLevel : TopLevel -> Screen
Parameters
- TopLevel
- The top level for which to retrieve the Screen.
Return Value
Exceptions
ObjectDisposedException | TopLevel platform implementation was already disposed. |