Xamarin.Forms icon indicating copy to clipboard operation
Xamarin.Forms copied to clipboard

[Bug] Entry control using TextTransform does not function as expected

Open henda79 opened this issue 4 years ago • 5 comments

Description

When entering characters into a Entry control which uses TextTransform set to Uppercase or Lowercase, the last character to be entered is not affected by the transformation.

e.g So if I have an Entry control set to Uppercase which is bound to a Label and enter "test", the label updates to "TESt"

Steps to Reproduce

        <Entry 
            x:Name="TxtEntry"
            TextTransform="Uppercase" />

        <Label 
            Text="{Binding Source = {x:Reference TxtEntry}, Path=Text}" />

Expected Behavior

I would expect the label to read "TEST"

Actual Behavior

Label reads "TESt"

Basic Information

  • Version with issue: XF 4.8.0.1451
  • Last known good version: unknown
  • IDE: VS2019 community
  • Platform Target Frameworks:
    • iOS: not checked
    • Android: 9.0 API 28
    • UWP: not checked
  • Affected Devices: Emulator

Screenshots

None needed, very simple to reproduce.

Reproduction Link

None needed, very simple to reproduce.

Workaround

For now, I'm just converting to uppercase in VM before checking and pushing to storage.

henda79 avatar Sep 25 '20 12:09 henda79

Also happens on iOS, but not on UWP.

_12255 Repro.zip

hartez avatar Oct 01 '20 16:10 hartez

X.F 5+ and continue...

DiegoVenancioVieira avatar Apr 28 '21 12:04 DiegoVenancioVieira

This continues to occur with XF 5.0.0.2578

gone4wd avatar Sep 29 '23 13:09 gone4wd

I can't see this getting fixed.

henda79 avatar Sep 29 '23 13:09 henda79

Verified it's fixed in MAUI. Guess that's the best path forward.

gone4wd avatar Sep 29 '23 18:09 gone4wd