TryGetPlatformHandle Method
Trys to get the platform handle for the TopLevel-derived control.
Definition
Namespace: Avalonia.Controls
Assembly: Avalonia.Controls (in Avalonia.Controls.dll)
- C#
- VB
- F#
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.