0

How to display text with icon in button? I am using font awesome icons and displaying them using their uni code. Like this:

Now if i add unicode with text the icon doesnt show although text still shows.

This only shows text and Cross instead of icon.

1
  • use SourceSansPro-Light.otf Commented Jul 8, 2017 at 6:44

4 Answers 4

1

Font awsome is a font, so it can't be in the same block as other text. We need 2 blocks so you can control the font for each of them.

Sign up to request clarification or add additional context in comments.

1 Comment

Hmm i guess that's one way of doing it.
1

Use Iconize for Xamarin Forms. It let's you use font awesome and other icon fonts too.

Comments

1

you use hex "&#x" instead of "\u"

eg.

<Button Text="&#x2699;"/> 

Comments

0

Forms9Patch has an ImageButton and MaterialButton that does a great job of making this easy.

1 Comment

Forms9Patch ImageButton and MaterialButton has been deprecated. This function is now standard on Forms9Patch.Button.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.