Dockyard.Blazor 0.2.2

dotnet add package Dockyard.Blazor --version 0.2.2
                    
NuGet\Install-Package Dockyard.Blazor -Version 0.2.2
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Dockyard.Blazor" Version="0.2.2" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Dockyard.Blazor" Version="0.2.2" />
                    
Directory.Packages.props
<PackageReference Include="Dockyard.Blazor" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Dockyard.Blazor --version 0.2.2
                    
#r "nuget: Dockyard.Blazor, 0.2.2"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Dockyard.Blazor@0.2.2
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Dockyard.Blazor&version=0.2.2
                    
Install as a Cake Addin
#tool nuget:?package=Dockyard.Blazor&version=0.2.2
                    
Install as a Cake Tool

Dockyard.Blazor

A .NET 8/.NET 10 Razor class library wrapping the actual Dockyard browser engine. Install Dockyard.Blazor version 0.2.2; runtime JavaScript and styles are included as local static web assets.

Components

DockingManager exposes themes, flow direction, history, native layout references, typed document/tool creation, activation, closing, JSON/XML persistence and undo/redo. Use Options and Module for additional native properties and APIs. Ready signals successful interactive initialization; Changed and explicit subscriptions forward native events.

@using Dockyard.Blazor
<DockingManager @ref="dock" Theme="light" Ready="Initialize" Style="height:600px" />
@code {
    private DockingManager dock = default!;
    private async Task Initialize(Microsoft.JSInterop.IJSObjectReference control)
    {
        await using var handle = await dock.AddDocumentAsync(new DockContent {
            ContentId = "editor", Title = "Editor", Content = "Created from C#"
        });
    }
}

DockContent.Content accepts BrowserFunction.RazorTemplate(id, fields: ["Title", "ContentId"]) for interactive Razor pane content. Register AddDockyardBlazor and RegisterDockyardBlazor on the host before using templates. The sample demonstrates real pane callbacks.

Integration and qualification

Read INTEGRATION.md for hosting registration, templates, data/streaming protocols, returned function references, ownership and publication. Components initialize after interactive rendering and support both WebAssembly and Server; static SSR only renders a host. NuGet consumers do not need npm or a CDN.

CI restores the produced package into both sample hosts for net8.0 and net10.0, tests actual native operations, managed lifecycle, large JSON/binary transfer, Razor input binding and remounting. It does not qualify physical GPUs, hybrid WebViews or every browser. Native compatibility limits still apply.

Lifecycle in 0.2.2

IsReady and IsDisposed expose visual lifecycle state. Concurrent disposal awaits one cleanup operation and retains its failure. Queued callbacks stop after removal; template roots clean up late imports and creation. Factories return awaitable disposal promises and retain roots during synchronous DOM movement. The shared sample tests movement, context updates and recreation in both hosts. Store durable state outside recycled cell components.

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.2.2 81 9/14/2026
0.2.1 83 9/14/2026
0.2.0 85 9/14/2026