xamarin / Xamarin.Forms

Xamarin.Forms is no longer supported. Migrate your apps to .NET MAUI.
https://aka.ms/xamarin-upgrade
Other
5.62k stars 1.87k forks source link

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

Open henda79 opened 4 years ago

henda79 commented 4 years ago

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

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.

hartez commented 4 years ago

Also happens on iOS, but not on UWP.

_12255 Repro.zip

DiegoVenancioVieira commented 3 years ago

X.F 5+ and continue...

gone4wd commented 1 year ago

This continues to occur with XF 5.0.0.2578

henda79 commented 1 year ago

I can't see this getting fixed.

gone4wd commented 1 year ago

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