Blazing.Mvvm.Base 3.3.16

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

<p> <img src="https://raw.githubusercontent.com/gragra33/Blazing.Mvvm/master/docs/github-pages/images/logo.png" alt="Blazing.Mvvm logo" width="96"> </p>

Blazing.Mvvm

CI/CD

Blazing.Mvvm Blazing.Mvvm.Analyzers Downloads

🔥 Blazing.Mvvm brings full MVVM support to Blazor through seamless integration with the CommunityToolkit.Mvvm. It provides strongly-typed, ViewModel-first navigation, automatic ViewModel registration and discovery, parameter resolution between Views and ViewModels, validation with ObservableValidator, and comprehensive lifecycle management across every Blazor hosting model (Server, WebAssembly, Static SSR, Auto, Hybrid, and MAUI). It also ships Roslyn analyzers with one-click code fixes to catch common MVVM mistakes at build time.

Quick Start

1. Install the package

dotnet add package Blazing.Mvvm

2. Register Blazing.Mvvm in Program.cs

builder.Services.AddMvvm(options =>
{
    options.HostingModelType = BlazorHostingModelType.WebApp;
});

3. Create a ViewModel

public partial class CounterViewModel : ViewModelBase
{
    [ObservableProperty]
    private int _count;

    [RelayCommand]
    private void Increment() => Count++;
}

4. Use it in a component

@page "/counter"
@inherits MvvmComponentBase<CounterViewModel>

<p role="status">Current count: @ViewModel.Count</p>
<button class="btn btn-primary" @onclick="ViewModel.IncrementCommand.Execute">
    Click me
</button>

For the full walkthrough, including configuration options, ViewModel setup, and component usage, see the Getting Started guide.

Documentation

Full documentation, guides, samples, analyzer rules, and the API reference are available on the documentation site.

Share Your Feedback

If you like the library, use it, share it, and give it a ⭐️. For any suggestions, feature requests, or issues, feel free to create an issue to help improve the library.

Contributing

Refer to the Contributing guide for more details.

License

This project is licensed under the MIT License. See the LICENSE file for details.

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 is compatible.  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 (1)

Showing the top 1 NuGet packages that depend on Blazing.Mvvm.Base:

Package Downloads
Blazing.Mvvm

A simple and easy-to-use MVVM implementation for Blazor wrapping CommunityToolkit.Mvvm. Features automatic ViewModel discovery, strongly-typed navigation with multi-parameter route support, parameter resolution, validation support, Automatic Two-Way Binding, and dynamic base path detection for YARP and subpath hosting scenarios.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
3.3.16 411 8/2/2026
3.3.15-beta 125 7/24/2026
3.3.11-beta 124 7/23/2026
3.2.1 5,959 2/2/2026
3.2.0 642 1/6/2026
3.1.0 900 12/3/2025
3.0.0 905 11/17/2025
2.2.0 7,304 12/7/2024
2.1.1 254 12/4/2024