Avalonia bindings published for D
A D program can now open an Avalonia desktop window without a C# Main.
The package is avalonia-dunchecked.
The repository went public on 17 August 2026.
Essay: Hosting Avalonia from D. Component docs: avalonia-d. Org-site news: Avalonia bindings published for Dunchecked.
What shipped
The hello example is a D main.
It calls init, builds a stack, hangs a button on it, and blocks in run().
The window that appears is ShadUI chrome: themed title bar, dark ShadTheme, a Primary-class button—not a bare Avalonia rectangle with system decorations.
Avalonia itself is a .NET UI toolkit.
No D wrapper showed up on GitHub, awesome-d, or the DUB registry before this package.
D cannot import a C# assembly, so avalonia-d does not project every Avalonia type.
A small C# host exports a C ABI through DNNE; D loads the native shim and wraps opaque handles.
The high-level look is not a from-scratch shadcn clone.
ShadUIunchecked already covers that kit for Avalonia (MIT, NuGet ShadUI, Avalonia 12.1 as of 0.2.4).
The host consumes it.
Russkyc.UI.Avaloniaunchecked is a second class-based theme in the same design language.
v0 covers window, stack, scroll, card, button, text, text box, and checkbox. It is not a generated 1:1 mapping of the Avalonia catalog.
What to read next
-
Craft notes and why the host exists: blog article.
-
Build the host and run the gallery: avalonia-d quick start.
-
Source:
dlang-supplemental/avalonia-dunchecked.