IncaTechnologies.WPF.Validation 1.2.1

Prefix Reserved
dotnet add package IncaTechnologies.WPF.Validation --version 1.2.1                
NuGet\Install-Package IncaTechnologies.WPF.Validation -Version 1.2.1                
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="IncaTechnologies.WPF.Validation" Version="1.2.1" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add IncaTechnologies.WPF.Validation --version 1.2.1                
#r "nuget: IncaTechnologies.WPF.Validation, 1.2.1"                
#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.
// Install IncaTechnologies.WPF.Validation as a Cake Addin
#addin nuget:?package=IncaTechnologies.WPF.Validation&version=1.2.1

// Install IncaTechnologies.WPF.Validation as a Cake Tool
#tool nuget:?package=IncaTechnologies.WPF.Validation&version=1.2.1                

WPF Validation Framework

Why I build this project?

I was working on a project with a number of models. When the time to add validation come it felt awkward mark every model with attribute or even worse insert validation directly in the model. I wanted a way to describe te validation for a model without touching the model itself.

What the project does?

It abstracts the validation of the properties of an object using a separate class (IValidationDescriptions<T>) based on the type of the object.

How to use the project

ValidationService is a facade class for validation, use it to register IValidationDescriptions<T> where T is the object that you want to validate. The simplest way of doing so is inherit form the abstract class ValidationDescriptions<T> and in the constructor add the rules via RulesFor and AddRule methods.

Look at the Example project inside the git to see the framework in action, https://github.com/Matt90hz/WPF-Validation-Framework.

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

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.2.1 184 7/21/2023
1.2.0 160 5/26/2023
1.1.1 260 3/2/2023
1.1.0 267 3/1/2023
1.0.0 317 11/18/2022 1.0.0 is deprecated because it has critical bugs.

1.0.0 - Frist release
1.1.0 - Fixed critical problem with project reference
1.1.1 - Added documentation
1.2.0 - Implemented automatic DI registration
1.2.1 - Allowed validation of null values