protected override void UpdateTarget(TextFieldInfo textFieldInfo) { if (!Target.IsFirstResponder || Target.BeginningOfDocument == null) { return; } Target.AttributedText = textFieldInfo.GetAttributedText(); var positionToSet = Target.GetPosition(Target.BeginningOfDocument, textFieldInfo.CursorPosition); Target.SelectedTextRange = Target.GetTextRange(positionToSet, positionToSet); }