Oakrey.ViewModels 1.0.0

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

Oakrey.ViewModels

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.

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.

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

Requirements

  • .NET 8 or higher

Project Information

Contributing

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

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-windows7.0 is compatible.  net9.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net8.0-windows7.0

    • No dependencies.

NuGet packages (4)

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

Package Downloads
Oakrey.Applications.Terminals

A .NET library for building terminal-like interfaces, featuring command history, message handling, file export, and integration with logging and telemetry.

Oakrey.Applications.Help

A .NET library for managing and displaying help content in applications, with support for Markdown files, navigation, and logging

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.

Oakrey.Interactions

The Oakrey.Interactions library provides a framework for managing user interactions in .NET applications. It supports various question and response types, enabling developers to create interactive workflows with ease.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.0 198 4/16/2025