NumericBox (Validation)

Text box for numbers with automatic validation.




About Current Version 2.5.0



- All the BackgroundColor and BackgroundError fields now are respectively ColorUI and ColorUIError of type "ColorUI" in all items.
- Add new colors "OrangeLight", "YellowDark", "GreenDark", "BlueDark", "Aqua", "Tan", "GreenDarkness", "BlueViolet".

About Previous Version



- 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.

- WidthRequest, Border and HeightRequest properties have been discontinued. Add new "Width" property.

Example



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, maximum, integer, decimal, number of decimal places among other things.

Tag:
<lv:NumericBox x:Name="txtPrice" Padding="2" Placeholder="Price" FontType="Bold" BackgroundColor="White" HorizontalOptions="FillAndExpand" Maximum="4" NumberColorError="Yellow" NumericType="Double" BorderColorError="Red" BackgroundColorError="Salmon" NumberColor="Orange" ValidationType="CharacterToCharacter" LabelMessageError="{Reference errorPrice}" NumberOfDecimals="2" ChangeMessageLabel="True"/>

<Label: x:Name="errorPrice" 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.


Download
Download

Documentation



Available in pdf

Documentation download