NumericBox (Validation)

Text box for numbers with automatic validation.




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

Documentation



Available in pdf

Documentation download