protected virtual void OnFocusChangeRequested(object sender, Xamarin.Forms.VisualElement.FocusRequestArgs e)
        {
            e.Result = true;

            if (e.Focus)
            {
                // Android does the actual focus/unfocus work on the main looper
                // So in case we're setting the focus in response to another control's un-focusing,
                // we need to post the handling of it to the main looper so that it happens _after_ all the other focus
                // work is done; otherwise, a call to ClearFocus on another control will kill the focus we set here
                Xamarin.Forms.Device.BeginInvokeOnMainThread(() =>
                {
                    RequestFocus();
                });
            }
            else
            {
                ClearFocus();
            }
        }
Beispiel #2
0
 void Handle_FocusChangeRequested(object sender, Xamarin.Forms.VisualElement.FocusRequestArgs e)
 {
     throw new NotImplementedException();
 }