Oakrey.Wpf.ValidationRules
2.0.1
dotnet add package Oakrey.Wpf.ValidationRules --version 2.0.1
NuGet\Install-Package Oakrey.Wpf.ValidationRules -Version 2.0.1
<PackageReference Include="Oakrey.Wpf.ValidationRules" Version="2.0.1" />
<PackageVersion Include="Oakrey.Wpf.ValidationRules" Version="2.0.1" />
<PackageReference Include="Oakrey.Wpf.ValidationRules" />
paket add Oakrey.Wpf.ValidationRules --version 2.0.1
#r "nuget: Oakrey.Wpf.ValidationRules, 2.0.1"
#:package Oakrey.Wpf.ValidationRules@2.0.1
#addin nuget:?package=Oakrey.Wpf.ValidationRules&version=2.0.1
#tool nuget:?package=Oakrey.Wpf.ValidationRules&version=2.0.1
Oakrey.Wpf.ValidationRules
1. Overview
The "Wpf.ValidationRules" project provides a collection of reusable validation rules for WPF applications. These rules are designed to validate user input in data binding scenarios, ensuring data integrity and improving user experience.
2. Features
Range Validation:
DoubleRangeRule, IntRangeRule, and UIntRangeRule validate numeric inputs against specified ranges. HexByteRangeRule validates hexadecimal byte values within a defined range.
String Validation:
EmptyStringRule ensures that string inputs are not null or empty. MaxStringLengthRule and MinStringLengthRule validate the length of string inputs.
Customizable Error Messages:
Each rule provides detailed error messages to guide users in correcting their input.
WPF Integration:
Fully supports WPF's ValidationRule mechanism, making it easy to integrate with existing data binding setups.
3. 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.Wpf.ValidationRulesand click Install.
.NET CLI
Run the following command in your terminal:
dotnet add package Oakrey.Wpf.ValidationRules
Package Manager Console
Run the following command in your Package Manager Console:
Install-Package Oakrey.Wpf.ValidationRules
4. Requirements
- .NET 8 or higher
5. Project Information
- Author: Oakrey
- Company: Oakrey (Website Link)
- License: MIT
- Repository: Git Repository
- Project URL: Project Website
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 | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0-windows7.0 is compatible. |
-
net10.0-windows7.0
- No dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.