AvaloniaObjectCheckAccess Method

Returns a value indicating whether the current thread is the UI thread.

Definition

Namespace: Avalonia
Assembly: Avalonia.Base (in Avalonia.Base.dll) Version: 11.3.999
public bool CheckAccess()

Return Value

Boolean
true if the current thread is the UI thread; otherwise false.

See Also