RibbonWeb.Blazor 0.2.2

dotnet add package RibbonWeb.Blazor --version 0.2.2
                    
NuGet\Install-Package RibbonWeb.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="RibbonWeb.Blazor" Version="0.2.2" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="RibbonWeb.Blazor" Version="0.2.2" />
                    
Directory.Packages.props
<PackageReference Include="RibbonWeb.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 RibbonWeb.Blazor --version 0.2.2
                    
#r "nuget: RibbonWeb.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 RibbonWeb.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=RibbonWeb.Blazor&version=0.2.2
                    
Install as a Cake Addin
#tool nuget:?package=RibbonWeb.Blazor&version=0.2.2
                    
Install as a Cake Tool

RibbonWeb.Blazor

Install RibbonWeb.Blazor version 0.2.2. The .NET 8/.NET 10 package contains the real ribbon JavaScript engine as local static web assets, for interactive WebAssembly and Server.

Native and compatible components

@using RibbonWeb.Blazor
<RibbonControl Model="model" Theme="light" Style="min-height:180px" />
@code {
    private RibbonDefinition model = new() { Tabs = [new() {
        Id = "home", Header = "Home", Groups = [new() {
            Id = "file", Header = "File", Items = [new() { Id = "save", Label = "Save" }]
        }]
    }] };
}

Typed definitions cover tabs, contextual groups, groups, quick access, backstage, item state, values, commands, bindings and custom render slots; AdditionalProperties preserves advanced native options. Set ModelVersion when mutating an existing model in place. Changed forwards native command/change/tab events. Wait for Ready, then use SelectTabAsync, UpdateControlAsync, GetControlAsync, SetContextAsync, InvalidateAsync or Module for advanced APIs.

The existing RibbonWeb component retains Commands/ICommand, its compatible .NET events and original static asset paths. Its namespace and type share a name; when declaring the component type explicitly, use global::RibbonWeb.Blazor.RibbonWeb. The sample uses an independent application namespace to avoid C# namespace collisions.

Razor custom controls

Register AddRibbonWebBlazor and the host's RegisterRibbonWebBlazor. Define a BrowserTemplate<TItem> with a unique ID, then give a native RibbonItemDefinition Type = "custom" and Render = BrowserFunction.RazorTemplate(id, contextProperty: "control", fields: ["id", "label"]). Razor callbacks and input binding run inside the native control's shadow DOM. The sample verifies an actual custom-control callback alongside compatible .NET tab-event forwarding.

Read INTEGRATION.md for registration, native references, callback timing, data streaming, lifetime and publication. No npm/CDN is needed for package consumers. Browser/native compatibility boundaries remain unchanged.

Lifecycle in 0.2.2

RibbonControl.IsReady and IsDisposed expose native lifecycle state. Concurrent cleanup waits for the same native teardown, releases all handles after errors and retains failures. Queued callbacks stop after removal. Razor factories provide awaitable disposal, coalesced updates and late-import/creation cleanup. Actual-package samples test template movement, context updates and recreation in both hosts.

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 74 9/14/2026
0.2.1 72 9/14/2026
0.2.0 75 9/14/2026