Skip to main content

TryGetPlatformHandle Method

Tries to get the platform handle for the Screen.

Definition​

Namespace: Avalonia.Platform
Assembly: Avalonia.Controls (in Avalonia.Controls.dll)

public virtual IPlatformHandle? TryGetPlatformHandle()

Return Value​

IPlatformHandle
An IPlatformHandle describing the screen handle, or null if the handle could not be retrieved.

See Also​

Reference​

Screen Class
Avalonia.Platform Namespace