private void EditingDidBegin(object sender, EventArgs e)
        {
            if (!_cursorPositionChangePending && !_selectionLengthChangePending)
            {
                UpdateCursorFromControl(null);
            }
            else
            {
                UpdateCursorSelection();
            }

            _element.SetValueFromRenderer(VisualElement.IsFocusedPropertyKey, true);
        }
 private void SetCursorPositionFromRenderer(int start)
 {
     try
     {
         _nativeSelectionIsUpdating = true;
         _element?.SetValueFromRenderer(Entry.CursorPositionProperty, start);
     }
     catch (Exception ex)
     {
     }
     finally
     {
         _nativeSelectionIsUpdating = false;
     }
 }