Skip to main content

TryGetPlatformHandle Method

Trys to get the platform handle for the TopLevel-derived control.

Definition

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

public IPlatformHandle? TryGetPlatformHandle()

Return Value

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

See Also

Reference

TopLevel Class
Avalonia.Controls Namespace