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