Pages

Monday, 23 November 2020

Enable scroll on page when keyboard displayed

 You can also manually scroll your page using below code

void EntryKeyboardHandle_Focused(object sender, Xamarin.Forms.FocusEventArgs e)
        {
            Device.BeginInvokeOnMainThread(async () =>
            {
                var height = SignupGrid.Height;
                await MainScroll.ScrollToAsync(0, height, true);
            });
        }

You need to put your grid or stacklayout in scroll view and put focus event on entry.

Focused="EntryKeyboardHandle_Focused"
Please also read More ....

No comments:

Post a Comment