Editor

Inheritance: Element -> NavigableElement -> VisualElement -> View -> InputView Xamarin.Forms documentation: Editor API / Guide

For details on how the control actually works, please refer to the Xamarin.Forms documentation.

Constructors

ConstructorsDescription

Editor(text: string, onTextChanged: string -> ‘msg)

Defines a Editor widget with a text and onTextChanged event.

Properties

PropertiesDescription

autoSize(value: EditorAutoSizeOption)

Sets a value that controls whether the editor will change size to accommodate input as the user enters it.

font(?size: float, ?namedSize: NamedSize, ?attributes: FontAttributes, ?fontFamily: string)

Sets the font family used

isTextPredictionEnabled(value: bool)

Sets whether the text prediction is enabled.

reference(value: ViewRef<Editor>)

Sets a ViewRef instance to retrieve the Xamarin.Forms.Editor instance associated to this widget

Events

PropertiesDescription

onCompleted(onCompleted: ‘msg)

Sets the event handler for the entry onCompleted event

Usages

Editor("Enter a description", TextChanged)
    .keyboard(Keyboard.Email)
    .textColor(Color.Red.ToFabColor(), Color.Blue.ToFabColor())
    .font(namedSize = NamedSize.Large, fontFamily = "Arial", attributes = FontAttributes.Bold)
    .textTransform(TextTransform.Lowercase)
    .onCompleted(TextCompleted)

Get access to the underlying Xamarin.Forms.Editor

let editorRef = ViewRef<Editor>()

Editor("Enter a description", TexChanged)
    .reference(editorRef)

Last updated