ScreenTryGetPlatformHandle Method
Tries to get the platform handle for the Screen.
Namespace: Avalonia.PlatformAssembly: Avalonia.Controls (in Avalonia.Controls.dll) Version: 11.3.999
public virtual IPlatformHandle? TryGetPlatformHandle()
Public Overridable Function TryGetPlatformHandle As IPlatformHandle
abstract TryGetPlatformHandle : unit -> IPlatformHandle
override TryGetPlatformHandle : unit -> IPlatformHandle
Return Value
IPlatformHandle
An
IPlatformHandle describing the screen handle, or null if the handle
could not be retrieved.