TopLevelTryGetPlatformHandle Method
Trys to get the platform handle for the TopLevel-derived control.
Namespace: Avalonia.ControlsAssembly: Avalonia.Controls (in Avalonia.Controls.dll) Version: 11.3.999
public IPlatformHandle? TryGetPlatformHandle()
Public Function TryGetPlatformHandle As IPlatformHandle
member TryGetPlatformHandle : unit -> IPlatformHandle
Return Value
IPlatformHandle
An
IPlatformHandle describing the window handle, or null if the handle
could not be retrieved.