Skip to main content
net10.0net8.0

The complete Avalonia presentation backend for HtmlML.

Published
Jul 24, 2026
2mo ago
Total Downloads
257
257

Install

dotnet add package HtmlML.Backend.Avalonia --version 11.3.4-alpha.6
ProductVersions
.NET
net10.0net8.0

README

HtmlML.Backend.Avalonia

The complete Avalonia backend for HtmlML. It owns Avalonia visual projection, native layout integration, Canvas/SVG replay, input, focus, text/image services, clipboard, window lifecycle, OpenGL surfaces, frame scheduling, and headless composition.

Applications reference this package directly. The implementation currently retains the established JavaScript.Avalonia CLR namespace, but there is no separate JavaScript.Avalonia package or assembly.

The package also owns the ABI 2 native presentation host under HtmlML.Backends.Avalonia.Native:

  • NativeHtmlMlRuntime validates and prewarms the native runtime.
  • NativeHtmlMlView hosts an arbitrary absolute document URL.
  • NativeSceneSurface is the shared focusable Avalonia scene presenter.
  • NativeHtmlMlApi exposes the low-level engine operations needed by advanced component integrations.

Applications should not copy the scene renderer. Keeping SVG, shaped text, clipping, input, cursor, animation-frame, and resize projection here ensures every native HtmlML consumer uses the same implementation.

Native scene publication uses a lock-free mailbox consumed on Avalonia's compositor clock. Ordinary scene traffic does not enter the UI dispatcher; a single coalesced UI-to-compositor wake is retained only for first presentation and cooperative live resize, where a platform nested event loop can suspend normal animation callbacks.

Changes from Previous Version

v11.3.4-alpha.4v11.3.4-alpha.6
Added Dependencies

Adoption Assessment

Assess this package against its supported frameworks, license, maintenance signals and dependency graph before making it a project standard.

This version is marked prerelease. Validate its API and upgrade path before production use.No SPDX license expression is published. Review the license text and your organisation's policy before redistribution.Compatibility metadata lists 2 target frameworks; confirm the exact target used by your application.The published metadata declares 26 direct dependency entries across framework groups. Inspect the resolved dependency graph for your target framework.

Related Guides & Workflows

Learn how to evaluate, integrate, or audit this package in your .NET project.