We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Multiple bindings in a button

Thread ID:





145057 Jun 4,2019 12:44 PM UTC Jun 5,2019 11:51 AM UTC Xamarin.Forms 1
Tags: SfButton
Asked On June 4, 2019 12:44 PM UTC


I have a button where I use fontfamily fontawesome and another fontfamily.

The text I want to write is:  " Facebook"

My issue is that Facebook is also detected as a fontawesome key.

So I would like to do:

<Run Text="&#xf39e;" FontFamily="{StaticResource FontAwesomeBrands}"/>
<Run Text="Facebook" FontFamily="{StaticResource MyOtherFont}"/>

In WPF run does the job. In xamarin forms it's not existing.

How can I do it?


Bharathiraja K [Syncfusion]
Replied On June 5, 2019 11:51 AM UTC

Hi Alexis, 
Greetings from Syncfusion. We have prepared the sample to add Font- Awesome style and other custom style to button, the sample will be downloaded from below link. 
The FontFamily property of the SfButton is used to customize the font family of the text. 
<buttons:SfButton Text="Facebook" FontFamily="{StaticResource Lobster-Regular}" TextColor="White" HorizontalOptions="FillAndExpand" VerticalOptions="Start" HeightRequest="40" CornerRadius="15"> 
To display Font Awesome icons, we can use image source as like the below code snippet. 
<buttons:SfButton  Text="" x:Name="buttonCallMobile" Clicked="ButtonCallMobile_OnClicked" ShowIcon="true" BackgroundColor="White" > 
                <FontImageSource Glyph="&#xf39e;" Size="15" Color="{StaticResource RarikBlue}"  
                                         FontFamily="{StaticResource FontfamilyFontAwesome}"> 


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon