Text editor
A multi line text entry component.
Base control is the XF editor control, more info here – https://docs.microsoft.com/en-us/xamarin/xamarin-forms/user-interface/text/editor
How to use this component
Should be used when user can enter anything, i.e. describing a location
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
<inputs:Editor AutoSize="TextChanges"
Errors="{Binding Suggestion.Errors[Message]}"
MaxLength="500"
Placeholder="{x:Static resx:AppResources.PlaceholderSuggestions}"
ShowCharacterCount="True"
Text="{Binding Suggestion.Message}" />
- Text
- Entry text property
- Default is null
- Placeholder
- Placeholder/ title for the entry
- Default is string.Empty
- Keyboard
- 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
- 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/editor#limit-input-length
- Default is int.MaxValue
- Errors
- Used to show validation errors to the user
- ShowCharacterCount
- Used to hide/ show remaining character count
- Character limit is based on the MaxLength property
- Default is false
- AutoSize
- Used to indicate whether the editor will resize to the users input or set to a specific size. More info here – https://docs.microsoft.com/en-us/xamarin/xamarin-forms/user-interface/text/editor#auto-size-an-editor
- Default is EditorAutoSizeOption.Disabled