https://github.com/tbertuzzi/bertuzzi.maui.behaviorvalidationpack
:wrench: Package with multiple field validations for Xamarin.Forms
https://github.com/tbertuzzi/bertuzzi.maui.behaviorvalidationpack
Last synced: 6 months ago
JSON representation
:wrench: Package with multiple field validations for Xamarin.Forms
- Host: GitHub
- URL: https://github.com/tbertuzzi/bertuzzi.maui.behaviorvalidationpack
- Owner: TBertuzzi
- Created: 2022-08-18T14:09:56.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2022-08-19T13:37:31.000Z (about 3 years ago)
- Last Synced: 2025-04-17T17:41:46.667Z (6 months ago)
- Language: C#
- Size: 161 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Bertuzzi.MAUI.BehaviorValidationPack
Package with multiple field validations for MAUI.
Easily validate numbers, texts and implement masks.
###### This is the component, works on iOS, Android and UWP.**NuGet**
|Name|Info|
| ------------------- | :------------------: |
|Bertuzzi.MAUI.BehaviorValidationPack|[](https://www.nuget.org/packages/Bertuzzi.MAUI.BehaviorValidationPack/)|**Platform Support**
Bertuzzi.MAUI.BehaviorValidationPack is a MAUI library.
## Setup / UsageDoes not require additional configuration. Just install the package in the shared project and use.
You just need to add the reference in your xaml file.
```csharp
xmlns:behaviorPack="clr-namespace:Bertuzzi.MAUI.BehaviorValidationPack;assembly=XBertuzzi.MAUI.BehaviorValidationPack"
```Behavior
```csharp
```
**Available Behaviors**
Global Validators
* DateValidationBehavior : Checks if an Date is valid.
* EmailValidationBehavior : Checks if an email is valid.
* MaxLengthValidationBehavior : Limits a Entry with a maximum number of characters.
* NumberValidationBehavior : Valid if a Entry is numeric.
* PasswordValidationBehavior : Validate the strength of a password:
at least 8 characters
at least 1 numeric character
at least 1 lowercase letter
at least 1 uppercase letter
at least 1 special character
Brazilians Validators* CEPValidationBehavior : Checks if an CEP is valid.
* CNPJValidationBehavior : Checks if an CNPJ is valid.
* CPFValidationBehavior : Checks if an CPF is valid.
* CPFCNPJValidationBehavior : Checks if an CPF or CNPJ is valid.Masks
* MaskedBehavior : Creates a custom mask on an entry.
```csharp
```
The complete example can be downloaded here:
based on my package : https://github.com/TBertuzzi/Xamarin.Forms.BehaviorValidationPack