Oakrey.ViewModels
1.0.0
dotnet add package Oakrey.ViewModels --version 1.0.0
NuGet\Install-Package Oakrey.ViewModels -Version 1.0.0
<PackageReference Include="Oakrey.ViewModels" Version="1.0.0" />
<PackageVersion Include="Oakrey.ViewModels" Version="1.0.0" />
<PackageReference Include="Oakrey.ViewModels" />
paket add Oakrey.ViewModels --version 1.0.0
#r "nuget: Oakrey.ViewModels, 1.0.0"
#addin nuget:?package=Oakrey.ViewModels&version=1.0.0
#tool nuget:?package=Oakrey.ViewModels&version=1.0.0
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
- Open your project in Visual Studio.
- Navigate to Tools > NuGet Package Manager > Manage NuGet Packages for Solution....
- 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
- Author: Oakrey
- Company: Oakrey
- License: MIT
- Repository: Git Repository
- Project URL: Project Website
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 | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net8.0-windows7.0 is compatible. net9.0-windows was computed. |
-
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 |