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
<PackageReference Include="Blazing.Mvvm.Base" Version="3.3.16" />
<PackageVersion Include="Blazing.Mvvm.Base" Version="3.3.16" />
<PackageReference Include="Blazing.Mvvm.Base" />
paket add Blazing.Mvvm.Base --version 3.3.16
#r "nuget: Blazing.Mvvm.Base, 3.3.16"
#:package Blazing.Mvvm.Base@3.3.16
#addin nuget:?package=Blazing.Mvvm.Base&version=3.3.16
#tool nuget:?package=Blazing.Mvvm.Base&version=3.3.16
<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
🔥 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 | Versions 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. |
-
net10.0
- CommunityToolkit.Mvvm (>= 8.4.2)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 10.0.10)
-
net8.0
- CommunityToolkit.Mvvm (>= 8.4.2)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 10.0.10)
-
net9.0
- CommunityToolkit.Mvvm (>= 8.4.2)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 10.0.10)
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 |