BlackSharp.MVVM
1.3.2
Prefix Reserved
dotnet add package BlackSharp.MVVM --version 1.3.2
NuGet\Install-Package BlackSharp.MVVM -Version 1.3.2
<PackageReference Include="BlackSharp.MVVM" Version="1.3.2" />
<PackageVersion Include="BlackSharp.MVVM" Version="1.3.2" />
<PackageReference Include="BlackSharp.MVVM" />
paket add BlackSharp.MVVM --version 1.3.2
#r "nuget: BlackSharp.MVVM, 1.3.2"
#:package BlackSharp.MVVM@1.3.2
#addin nuget:?package=BlackSharp.MVVM&version=1.3.2
#tool nuget:?package=BlackSharp.MVVM&version=1.3.2
<h1 align="center">BlackSharp.MVVM</h1>
<p align="center"> <img src="https://raw.githubusercontent.com/Blacktempel/BlackSharp/master/Assets/BlackSharpFull.png" width="128" height="128" alt="BlackSharp.MVVM logo"/> </p>
BlackSharp.MVVM provides framework-neutral view model building blocks on top
of CommunityToolkit.Mvvm.
Features
- A
ViewModelBasewith change-aware property setters and a notification for all properties - A cloneable drag-and-drop view model base and event arguments for reorder requests
- Selection models that pair display text with enum values
- Shared contracts for message and confirmation dialogs, application themes and hotkeys
Supported .NET versions
| .NET version | Support |
|---|---|
| .NET 8 | ✅ |
| .NET 9 | ✅ |
| .NET 10 | ✅ |
| .NET 11 | ✅ |
NuGet
dotnet add package BlackSharp.MVVM
Supported platforms
| Operating system | Support |
|---|---|
| Windows | ✅ |
| Linux | ✅ |
| Other | ✅ |
Usage
Derive from ViewModelBase and call SetField in your setters. It raises a
property change notification when the value changes.
using BlackSharp.MVVM.ComponentModel;
var counter = new CounterViewModel();
counter.PropertyChanged += (_, args) => Console.WriteLine($"{args.PropertyName}: {counter.Count}");
counter.Count = 1;
public sealed class CounterViewModel : ViewModelBase
{
private int _count;
public int Count
{
get => _count;
set => SetField(ref _count, value);
}
}
Support and license
Report issues in the BlackSharp issue tracker. Licensed under the Mozilla Public License 2.0.
| 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. net11.0 is compatible. |
-
net10.0
- BlackSharp.Core (>= 1.3.2)
- CommunityToolkit.Mvvm (>= 8.4.2)
-
net11.0
- BlackSharp.Core (>= 1.3.2)
- CommunityToolkit.Mvvm (>= 8.4.2)
-
net8.0
- BlackSharp.Core (>= 1.3.2)
- CommunityToolkit.Mvvm (>= 8.4.2)
-
net9.0
- BlackSharp.Core (>= 1.3.2)
- CommunityToolkit.Mvvm (>= 8.4.2)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on BlackSharp.MVVM:
| Package | Downloads |
|---|---|
|
BlackSharp.UI.Avalonia
Reusable Avalonia functionality for .NET applications. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.3.2 | 77 | 11/30/2026 |
| 1.3.1 | 123 | 11/24/2026 |
| 1.3.0 | 128 | 11/21/2026 |
| 1.2.12 | 162 | 11/16/2026 |
| 1.2.11 | 114 | 11/10/2026 |
| 1.2.10 | 126 | 11/6/2026 |
| 1.2.9 | 119 | 11/4/2026 |
| 1.2.8 | 139 | 11/1/2026 |
| 1.2.7 | 128 | 10/30/2026 |
| 1.2.6 | 703 | 10/28/2026 |
| 1.2.5 | 149 | 10/23/2026 |
| 1.2.4 | 131 | 10/22/2026 |
| 1.2.3 | 144 | 10/11/2026 |
| 1.2.2 | 153 | 9/23/2026 |
| 1.2.1 | 147 | 9/14/2026 |
| 1.2.0 | 196 | 8/21/2026 |
| 1.1.4 | 166 | 7/23/2026 |
| 1.1.3 | 195 | 7/19/2026 |
| 1.1.2 | 171 | 6/14/2026 |
| 1.1.1 | 180 | 5/22/2026 |