[Android] TextTransform on Button not working?

Stesvis 1,041 Reputation points


I can't seem to be able to get the TextTransform property to work on Buttons in Android.

The text always shows uppercase no matter what.
If I set this in the android project the buttons text is always the same as entered in the Text property: <item name="textAllCaps">false</item>

With that line, this never works: TextTransform="Uppercase"

For example this code:

   <Button Text="Tap here to pick your favorite categories"  
   		Style="{StaticResource btn-link}"  
   		TextTransform="None" />  

Gives me this:

The same happens if I set TextTransform="Lowercase"

Is there something overriding it? Or it just doesn't work on buttons in android?

A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,301 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Cole Xia (Shanghai Wicresoft Co,.Ltd.) 6,751 Reputation points


    Welcome to Microsoft Q&A!

    Please update Xamarin.Forms package to the latest .

    I test on Xamarin.Forms 5.x , everything works fine .

    The text on Buttons changes with TextTransform property as expected no matter we set <item name="textAllCaps">false</item> in Android project or not .

    If the response is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

  2. Ryan Harding 1 Reputation point

    Are you using material? I think its not working if material is not set...