NuExt.Minimal.Mvvm.Desktop
0.9.6
Prefix Reserved
dotnet add package NuExt.Minimal.Mvvm.Desktop --version 0.9.6
NuGet\Install-Package NuExt.Minimal.Mvvm.Desktop -Version 0.9.6
<PackageReference Include="NuExt.Minimal.Mvvm.Desktop" Version="0.9.6" />
<PackageVersion Include="NuExt.Minimal.Mvvm.Desktop" Version="0.9.6" />
<PackageReference Include="NuExt.Minimal.Mvvm.Desktop" />
paket add NuExt.Minimal.Mvvm.Desktop --version 0.9.6
#r "nuget: NuExt.Minimal.Mvvm.Desktop, 0.9.6"
#:package NuExt.Minimal.Mvvm.Desktop@0.9.6
#addin nuget:?package=NuExt.Minimal.Mvvm.Desktop&version=0.9.6
#tool nuget:?package=NuExt.Minimal.Mvvm.Desktop&version=0.9.6
NuExt.Minimal.Mvvm.Desktop
NuExt.Minimal.Mvvm.Desktop is a platform-agnostic base layer for desktop MVVM applications. It combines NuExt.Minimal.Mvvm with NuExt.System and holds the parts that are useful for any UI stack - WPF, Avalonia, WinUI, MAUI - without referencing a single UI framework.
Why NuExt.Minimal.Mvvm.Desktop?
- Deterministic lifecycle -
InitializableBaseprovides an idempotentInitialize/Uninitializepair with matching cleanup. - Change tracking -
ChangeTrackingBaseaddsIChangeTracking,AcceptChanges, and a disposable suspended tracking scope. - Settings - JSON settings objects (
SettingsBase+ISettingsService) and flat key/value settings (KeyValueSetting+KeyValueSettingCollection) stay separate on purpose. - No UI framework - no WPF, Avalonia, WinUI, or MAUI reference, so every desktop stack can share the same layer.
- Allocation-conscious models - change tracking, notifications, and settings conversion avoid hidden allocations in hot paths.
API Overview
InitializableBase: idempotentInitialize/Uninitializelifecycle on top ofBindableBase.ChangeTrackingBase:IChangeTrackingwithAcceptChangesand suspended tracking.SettingsBase: strongly typed settings object with change tracking, read-only mode, unknown-JSON preservation, and reflection access by property name.ISettingsService: loads and savesSettingsBaseto JSON files.KeyValueSetting: a single named setting stored as a raw string with an explicitType, typed accessors, andGetValue<T>().KeyValueSettingCollection: change-tracked collection ofKeyValueSettingthat raisesSettingChanged.SettingChangedEventArgs: notification payload for a changed setting value.ExpandableBase:IExpandablesupport.JsonObjectStateSerializer: serializes and restores object state as JSON, keeping unrecognized properties.EnvironmentServiceBase: application directories - base, config, app data, working, logs, settings.
Settings
The two settings pipelines are intentionally separate.
SettingsBasewithISettingsServicepersists a strongly typed object graph as JSON.KeyValueSettingwithKeyValueSettingCollectionmodels flat key/value rows: each value is a raw string converted on demand usingValueType, which is what a database-backed settings table stores.
Compatibility
- .NET Standard 2.0+, .NET 8/9/10/11, and .NET Framework 4.6.2+
- Works with WPF, Avalonia, WinUI, and MAUI applications
- Does not reference any UI framework
Installation
Via NuGet:
dotnet add package NuExt.Minimal.Mvvm.Desktop
Or via Visual Studio:
- Go to
Tools -> NuGet Package Manager -> Manage NuGet Packages for Solution.... - Search for
NuExt.Minimal.Mvvm.Desktop. - Click "Install".
Ecosystem
- NuExt.System
- NuExt.System.Data
- NuExt.System.Data.SQLite
- NuExt.Minimal.Mvvm
- NuExt.Minimal.Mvvm.SourceGenerator
- NuExt.Minimal.Behaviors.Wpf
- NuExt.Presentation.Wpf
- NuExt.Minimal.Mvvm.Wpf
- NuExt.Minimal.Mvvm.AvalonDock
- NuExt.Minimal.Mvvm.MahApps.Metro
- NuExt.Minimal.Mvvm.Desktop.Persistence
Contributing
Issues and PRs are welcome. Keep changes minimal and performance-conscious.
License
MIT. See LICENSE.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. 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. |
| .NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.0 is compatible. netstandard2.1 is compatible. |
| .NET Framework | net461 was computed. net462 is compatible. net463 was computed. net47 was computed. net471 is compatible. net472 was computed. net48 was computed. net481 was computed. |
| MonoAndroid | monoandroid was computed. |
| MonoMac | monomac was computed. |
| MonoTouch | monotouch was computed. |
| Tizen | tizen40 was computed. tizen60 was computed. |
| Xamarin.iOS | xamarinios was computed. |
| Xamarin.Mac | xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETFramework 4.6.2
- NuExt.Minimal.Mvvm (>= 0.9.2)
- NuExt.System (>= 0.9.3)
- System.Text.Json (>= 11.0.0)
-
.NETFramework 4.7.1
- NuExt.Minimal.Mvvm (>= 0.9.2)
- NuExt.System (>= 0.9.3)
- System.Text.Json (>= 11.0.0)
-
.NETStandard 2.0
- NuExt.Minimal.Mvvm (>= 0.9.2)
- NuExt.System (>= 0.9.3)
- System.Text.Json (>= 11.0.0)
-
.NETStandard 2.1
- NuExt.Minimal.Mvvm (>= 0.9.2)
- NuExt.System (>= 0.9.3)
- System.Text.Json (>= 11.0.0)
-
net10.0
- NuExt.Minimal.Mvvm (>= 0.9.2)
- NuExt.System (>= 0.9.3)
-
net11.0
- NuExt.Minimal.Mvvm (>= 0.9.2)
- NuExt.System (>= 0.9.3)
-
net8.0
- NuExt.Minimal.Mvvm (>= 0.9.2)
- NuExt.System (>= 0.9.3)
-
net9.0
- NuExt.Minimal.Mvvm (>= 0.9.2)
- NuExt.System (>= 0.9.3)
NuGet packages (2)
Showing the top 2 NuGet packages that depend on NuExt.Minimal.Mvvm.Desktop:
| Package | Downloads |
|---|---|
|
NuExt.Minimal.Mvvm.Wpf
A lightweight WPF add-on for NuExt.Minimal.Mvvm, providing view resolution, dispatcher-aware UI services, dialogs, documents, window lifecycle management, settings, and deterministic cleanup. |
|
|
NuExt.Minimal.Mvvm.Desktop.Persistence
SQLite persistence layer for desktop MVVM applications, combining NuExt.Minimal.Mvvm.Desktop with NuExt.System.Data.SQLite: key/value settings DAL, application version storage, the application settings migration, and a database initializer. |
GitHub repositories
This package is not used by any popular GitHub repositories.