dotnet / maui

.NET MAUI is the .NET Multi-platform App UI, a framework for building native device applications spanning mobile, tablet, and desktop.
https://dot.net/maui
MIT License
22k stars 1.72k forks source link

[Windows] The ListView doesn't scroll automatically when the on-screen keyboard appears #24767

Open ashok-kuvaraja opened 4 days ago

ashok-kuvaraja commented 4 days ago

Description

I have a ListView with Entry and Label controls as the item template for each row. When I touch the Entry control on my Windows machine to edit the text, the on-screen keyboard appears since I have enabled it. However, when the on-screen keyboard appears, the Entry element is hidden by the keyboard area.

This works perfectly in Xamarin ListView. I have attached both Xamarin and MAUI demos for your reference.

MAUI ListView

https://github.com/user-attachments/assets/06c9e050-a1cc-4e13-85d4-403d0de58a4f

Xamarin ListView

https://github.com/user-attachments/assets/f1a011f9-0e47-4b45-93ae-a83b725ae3d1

Steps to Reproduce

  1. Run the provided sample.
  2. Enable the touch screen via Windows Settings -> Personalization -> Text Input -> Touch Keyboard and Windows Settings -> Time & Language -> Typing -> Touch Keyboard to always.
  3. Maximize the window and scroll to the bottom to reach the last item (30).
  4. Touch the Entry control containing the text "30" using the touch screen.
  5. You will notice that the keyboard appears on the screen, but the ListView does not react to the view changes or scroll the element to make it visible.

Link to public reproduction project repository

https://github.com/ashok-kuvaraja/MauiListView/tree/main/MauiSimpleApp

Version with bug

8.0.61 SR6.1

Is this a regression from previous behavior?

Yes, this used to work in Xamarin.Forms

Last version that worked well

Unknown/Other

Affected platforms

Windows

Affected platform versions

Windows.

Did you find any workaround?

No

Relevant log output

No response

github-actions[bot] commented 4 days ago

Hi I'm an AI powered bot that finds similar issues based off the issue title.

Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it. Thank you!

Open similar issues:

Closed similar issues:

Note: You can give me feedback by thumbs upping or thumbs downing this comment.