Oakrey.ViewModels 2.1.0

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

Oakrey.ViewModels

1. Overview

The "ViewModels" project provides a robust framework for implementing the MVVM (Model-View-ViewModel) design pattern in .NET applications. It simplifies the development of maintainable and testable WPF applications by offering essential components like commands, collections, and base classes.

2. Features

Base Classes:

  • ViewModelBase provides property change notification and serves as a foundation for creating view models.

Command Implementation:

  • RelayCommand and RelayCommandGeneric enable binding actions to UI elements with minimal boilerplate code.
  • CommandBase offers a customizable base class for commands.

Asynchronous Support:

  • AsyncObservableCollection supports thread-safe and asynchronous operations on observable collections.
  • AsyncDispatcherEvent facilitates event handling in asynchronous scenarios.

Collection Utilities:

  • ObservableQueue provides an observable queue implementation for dynamic data binding.
  • CollectionsExtensions includes helper methods for working with collections.

Error Handling:

AsyncCollectionException provides structured exception handling for asynchronous collection operations.

3. Installation

You can install the package via NuGet Package Manager, Package Manager Console or the .NET CLI.

NuGet Package Manager

  1. Open your project in Visual Studio.
  2. Navigate to Tools > NuGet Package Manager > Manage NuGet Packages for Solution....
  3. Search for Oakrey.ViewModels and click Install.

.NET CLI

Run the following command in your terminal:

dotnet add package Oakrey.ViewModels

Package Manager Console

Run the following command in your Package Manager Console:

Install-Package Oakrey.ViewModels

4. Requirements

  • .NET 8 or higher

5. Project Information

6. Contributing

Contributions are welcome! Feel free to open issues or submit pull requests to improve the package.

7. License

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

Product Compatible and additional computed target framework versions.
.NET net10.0-windows7.0 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (7)

Showing the top 5 NuGet packages that depend on Oakrey.ViewModels:

Package Downloads
Oakrey.Applications.Settings

WPF-only (.NET 10 Windows) library providing ISettingsService with persistent and volatile typed key-value settings, SettingsBase for bindable ViewModelBase-derived settings classes, CallerMemberName key inference, built-in window bounds restore via RestoreBounds, and a one-call ConfigureSettingService DI extension.

Oakrey.Applications.Help

A WPF/.NET library for loading, navigating, and displaying hierarchical Markdown-based help content, with ViewModel integration, navigation history, and logging support.

Oakrey.Applications.About

A WPF/.NET library providing an About dialog with application name and version display, loaded assembly/module version listing, RTF EULA rendering, and a Report Issue form with log folder access.

Oakrey.Applications.Terminals

A WPF/MVVM .NET library for building terminal-like interfaces. Provides a generic TerminalViewModel base with reactive message collections (System.Reactive), navigable command history, sort and display settings, file export, and built-in Oakrey.Log and Oakrey.Telemetry integration.

Oakrey.DevOps.UI

Package contains: UI models for managing Azure DevOps work items, including BugModel and FeatureModel. Provides commands for submitting bugs and feature requests with support for attaching logs and tags.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
2.1.0 203 2/11/2026
2.0.1 130 1/6/2026
2.0.0 337 11/13/2025
1.3.0 218 10/15/2025
1.2.1 241 9/26/2025
1.2.0 279 6/30/2025
1.1.0 209 6/30/2025
1.0.0 319 4/16/2025