Text entry
A standard single line text entry component.
Base control is the XF entry control, more info here – https://docs.microsoft.com/en-us/xamarin/xamarin-forms/user-interface/text/entry
How to use this component
Should be used to collect written information, such as name or email.
Code Resource
Deprecated: htmlentities(): Passing null to parameter #1 ($string) of type string is deprecated in /home/site/wwwroot/wp-content/themes/huntsman-child/single-mobile.php on line 96
<!-- First name -->
<inputs:Entry Errors="{Binding User.Errors[FirstName]}"
Placeholder="{x:Static resx:AppResources.LblFirstName}"
Text="{Binding User.FirstName}" />
- Text
- Entry text property
- Default is null
- Placeholder
- Placeholder/ title for the entry
- Default is string.Empty
- ReturnType
- Changes the keyboard return type, more info here – https://docs.microsoft.com/en-us/dotnet/api/xamarin.forms.returntype?view=xamarin-forms
- Default is ReturnType.Default
- IsPassword
- Change entry behavior, more info here – https://docs.microsoft.com/en-us/xamarin/xamarin-forms/user-interface/text/entry#password-fields
- Default is false
- TextTransform
- Transforms the text inside the entry, more info here – https://docs.microsoft.com/en-us/xamarin/xamarin-forms/user-interface/text/entry#transform-text
- Default is TextTransform.Default
- Keyboard
- Sets the keyboard type, more info here – https://docs.microsoft.com/en-us/xamarin/xamarin-forms/user-interface/text/entry#customize-the-keyboard
- Default is Keyboard.Default
- MaxLength
- Sets the maximum length for the text in the entry, more info here – https://docs.microsoft.com/en-us/xamarin/xamarin-forms/user-interface/text/entry#limit-input-length
- Default is int.MaxValue
- Errors
- Used to show validation errors to the user
- TextChanged
- Raised when the text changes in the entry. Provides the text before and after the change.
- More info here – https://docs.microsoft.com/en-us/xamarin/xamarin-forms/user-interface/text/entry#textchanged
- Completed
- Raised when the user has ended input by pressing the return key on the keyboard.
- More info here – https://docs.microsoft.com/en-us/xamarin/xamarin-forms/user-interface/text/entry#completed