Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/TBertuzzi/Xamarin.Forms.BehaviorValidationPack
:wrench: Package with multiple field validations for Xamarin.Forms
https://github.com/TBertuzzi/Xamarin.Forms.BehaviorValidationPack
Last synced: 30 days ago
JSON representation
:wrench: Package with multiple field validations for Xamarin.Forms
- Host: GitHub
- URL: https://github.com/TBertuzzi/Xamarin.Forms.BehaviorValidationPack
- Owner: TBertuzzi
- Created: 2018-06-20T14:51:02.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-06-02T00:37:59.000Z (over 1 year ago)
- Last Synced: 2024-11-08T14:01:01.911Z (about 1 month ago)
- Language: C#
- Homepage:
- Size: 599 KB
- Stars: 52
- Watchers: 6
- Forks: 11
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-xamarin-forms - Xamarin.Forms.BehaviorValidationPack ★53
README
# Xamarin.Forms.BehaviorValidationPack
Package with multiple field validations for Xamarin.Forms.
Easily validate numbers, texts and implement masks.
###### This is the component, works on iOS, Android and UWP.**NuGet**
|Name|Info|
| ------------------- | :------------------: |
|Xamarin.Forms.BehaviorValidationPack|[![NuGet](https://buildstats.info/nuget/Xamarin.Forms.BehaviorValidationPack)](https://www.nuget.org/packages/Xamarin.Forms.BehaviorValidationPack/)|
|Xamarin.Forms.BehaviorValidationPack.XFMaterial|[![NuGet](https://buildstats.info/nuget/Xamarin.Forms.BehaviorValidationPack.XFMaterial)](https://www.nuget.org/packages/Xamarin.Forms.BehaviorValidationPack.XFMaterial/)|**Platform Support**
Xamarin.Forms.BehaviorValidationPack is a .NET Standard 2.0 library.Its only dependency is the Xamarin.Forms
## Setup / Usage
Does 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:Xamarin.Forms.BehaviorValidationPack;assembly=Xamarin.Forms.BehaviorValidationPack"
```**Behavior**
```csharp
```
**Behavior for XF-Material-Library**
###### This package is for anyone using the [XF.Material](https://github.com/Baseflow/XF-Material-Library)
```csharp
```
**Available Behaviors**
Global Validators
* CompareValidationBehavior : Compare if two Entrys are the same. Ideal for passwords.
* 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.
Based on MaskedBehavior by [Adam Pedley](https://github.com/adamped) (https://xamarinhelp.com/masked-entry-in-xamarin-forms/).
```csharp
```
The complete example can be downloaded here: https://github.com/TBertuzzi/Xamarin.Forms.BehaviorValidationPack/tree/master/BehaviorsPackSample