TextBox (Validation)

Text box with automatic validation.

About Current Version

- Update.

About Previous Version

- Add new color "Transparent" does not work for design components(Images example arrow).
- Added new Property in PickerBox "FontType".
- Field IsFocused, Events Focused, Unfocused and Property InputTransparent have been discontinued.
- Added new Event EnterField in NumericBox, EmailBox and TextBox.
- Now all events it's working in code behind.
- In TextBox WidthRequest, Border and HeightRequest properties have been discontinued. Add new "Width" property.
- It is necessary to change the import tag in xaml to "clr-namespace:LaavorTextBoxValidation;assembly=TextBoxValidation" and Using Laavor; to Using LaavorTextBoxValidation; in .cs file, making it possible to integrate with other Laavor packages.


You can enter a Label to show errors in field validation, which automatically changes text, border and background color when there is an error facilitating interaction with the user.
Multiple properties are available minimum and maximum characters.

<lv:TextBox x:Name="txtSKU" Padding="4" WidthRequest="20" Placeholder="SKU" FontType="Bold" BackgroundColor="White" MaximumOfCharacters="10" MinimumOfCharacters="4" TextColorError="Yellow" CanEmpty="False" BorderColorError="Red" BackgroundColorError="Salmon" TextColor="Orange" ValidationType="WhenLoseFocus" ChangeMessageLabel="True" LabelMessageError="{Reference errorSKU}" />

<Label: x:Name="errorSKU" FontSize="Micro" Margin="4" Text="" HorizontalOptions="FillAndExpand" VerticalOptions="StartAndExpand" TextColor="Red"/>

If use Form:
If used together with the form it is possible to enable the (submit) button only if the fields are valid, improving and much usability.

This version in the latest 2019 of Visual Studio, if there is any difficulty put via NugetPackage directly in your project and use the tag.

Xamarin.Forms in version



Available in pdf

Documentation download