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
22.2k stars 1.75k forks source link

MAUI Entry in Windows always shows ClearButton despite ClearButtonVisibility set to 'Never' #25473

Open DDHSchmidt opened 1 week ago

DDHSchmidt commented 1 week ago

Description

While testing out the fix for issue #25038 in our MAUI application I noticed that version 8.0.92 does not solve our issues with the Clear button on Windows, despite the assurances in the linked issue.

I was able to come up with a simple reproduction project, that still displays the Clear button within the Entry control on Windows, despite setting ClearButtonVisibility to "Never".

Image

Steps to Reproduce

  1. Start up reproduction project on Windows
  2. Start typing in the Entry control
  3. The "X" button will show up

Link to public reproduction project repository

https://github.com/DDHSchmidt/mauiEntryClearBroken

Version with bug

8.0.92 SR9.2

Is this a regression from previous behavior?

Not sure, did not test other versions

Last version that worked well

Unknown/Other

Affected platforms

Windows

Affected platform versions

No response

Did you find any workaround?

The previous fix seems to be dependant on the Entry control's surroundings. Embedding it in other layouts might help but is not possible, due to different requirements.

Relevant log output

No response

similar-issues-ai[bot] commented 1 week ago

We've found some similar issues:

If any of the above are duplicates, please consider closing this issue out and adding additional context in the original issue.

Note: You can give me feedback by 👍 or 👎 this comment.

MartyIX commented 1 week ago

Perhaps @NirmalKumarYuvaraj could take a look because of the work in #25006.