ComponentOne Xamarin Edition
MaskedEntry
Controls > Input > MaskedEntry

MaskedEntry is an input control designed to capture properly formatted user input. The control prevents users from entering invalid values in an input field, and characters like slash or hyphen. The control also provides data validation by skipping over invalid entries as the user types. To specify the format in which the data should be entered in an input field, the control uses special characters called mask symbols or mask inputs.

For example, you can use the control to create an input field that accepts phone numbers with area code only. Similarly, you can define a Date field that allows users to enter date in dd/mm/yyyy format. The image given below shows four MaskedEntry controls displaying fields namely ID to enter a valid identification number, DOB to enter date of month in dd-mm-yyyy format, Phone to enter a contact number with area code, and State showing a water mark (Placeholder) to prompt user to enter the name of state.