0

I want to create a button using fontawesome library in xamarin

expected output (expected output)

this is mine (this is mine)

<Button Text="&#xf104; Bireysel"
            TextColor="Black"
            VerticalOptions="Start"
            HorizontalOptions="Start"
            FontSize="30"
            Margin="15,0,0,0"
            FontFamily="{StaticResource FontAwesomeSolid}"
            BackgroundColor="Transparent"/>

I wanna change text style how can i do that?

Arslan
  • 33
  • 5
  • 1
    Does this answer your question? [Button text always showing in uppercase](https://stackoverflow.com/questions/47545369/button-text-always-showing-in-uppercase) – Cfun Aug 01 '22 at 17:47
  • Would you mind providing a minimal sample via GitHub so I can help you test it. Thanks! – Alexandar May - MSFT Aug 02 '22 at 09:12
  • hi alexandar Since this is a commercial project, it is not possible for me to share the source codes with you, but I have already specified the relevant piece of code in my question. – Arslan Aug 02 '22 at 10:50
  • hi @Cfun I am also experiencing the problem on IOS. When I examined the related question, I realized that there is a solution for android. – Arslan Aug 02 '22 at 10:53

2 Answers2

1

Button can have both text and image with FontImageSource:

<Button Text="Left">
  <Button.ImageSource>
    <FontImageSource Glyph="&#xF104;"
                     FontFamily="{StaticResource FontAwesomeSolid}" />
  </Button.ImageSource>
</Button>
Benl
  • 2,777
  • 9
  • 13
0

Try this TextTransform="None"

<Button Text="&#xf104; Bireysel"
        TextColor="Black"
        VerticalOptions="Start"
        HorizontalOptions="Start"
        FontSize="30"
        Margin="15,0,0,0"
        FontFamily="{StaticResource FontAwesomeSolid}"
        BackgroundColor="Transparent"
        TextTransform="None"/>
Bas H
  • 2,114
  • 10
  • 14
  • 23