Skip to main content

ShouldRenderOnUIThread Property

Render directly on the UI thread instead of using a dedicated render thread. Only applicable if CompositionMode is set to RedirectionSurface. This setting is only recommended for interop with systems that must render on the UI thread, such as WPF. This setting is false by default.

Definition​

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

public bool ShouldRenderOnUIThread { get; set; }

Property Value​

Boolean

See Also​

Reference​

Win32PlatformOptions Class
Avalonia Namespace