ITopLevelImpl.

Surfaces Property

Summary

The list of native platform's surfaces that can be consumed by rendering subsystems.
Namespace
Avalonia.Platform
Containing Type
ITopLevelImpl

Syntax

IEnumerable<object> Surfaces { get; }

Remarks

Rendering platform will check that list and see if it can utilize one of them to output. It should be enough to expose a native window handle via IPlatformHandle and add support for framebuffer (even if it's emulated one) via IFramebufferPlatformSurface. If you have some rendering platform that's tied to your particular windowing platform, just expose some toolkit-specific object (e. g. Func<Gdk.Drawable> in case of GTK#+Cairo)

Value

Type Description
IEnumerable<object>