
HelpText - the help text displayed below the editor box. PlaceholderText - the placeholder displayed within the editor box prior to user text input. You can also optionally specify Prefix and Suffix that are shown before and after the input text ( TextEdit), and add the following assistive text elements that provide additional information about text entered in the editor: Gets or sets the color of the clear icon. Specifies when the clear icon is displayed.Īdd a custom action to the ‘clear’ icon.
Use the following properties to manage the ‘clear’ icon: Clear IconĪn editor can display a ‘clear’ icon that allows users to remove text that was entered. You can also use the SelectAll(), SetSelection(Int32), and SetSelection(Int32, Int32) methods to select text.
Gets a character index at which the selection starts. Use the following properties to manage the cursor position and text selection: LoginEditor.HasError = string.IsNullOrEmpty(loginEditor.Text) Private void Button_Clicked(object sender, EventArgs e) This example shows how to change the input text color and adjust font settings:
You can also use the CursorColor property to customize the color of the input cursor.
TextFontAttributes / TextFontFamily / TextFontSize. Use the following properties to customize the text appearance and alignment: To prevent users from entering text in the editor, set the IsReadOnly property to true. You can also handle the TextChanged event that fires when text changes.Īfter a user has finished the input and tapped the return button on the keyboard, the Completed event occurs. Use the TextChangedCommand and TextChangedCommandParameter properties to specify the command executed when text changes. Use the Text property to get or set text entered in the editor box.
Namespace: ĭ Declaration public string Text Property Value Type Gets or sets the text entered in the editor.