DEV Community

Cover image for Using Font Icons in Xamarin.Forms
David Ortinau for .NET

Posted on

4 1

Using Font Icons in Xamarin.Forms

Font icons are a fast way to add artwork to your Xamarin.Forms app, and at a very low hit to filesize. This video takes you through grabbing a font, generating a static class with helpful named glyphs, and replacing a PNG with a FontImageSource.

<Button Grid.Column="0" Text="Pay Later" TextColor="Black" FontAttributes="Bold" BackgroundColor="#e4e4e4" CornerRadius="10" HeightRequest="50" Margin="10,5,10,20">
<Button.ImageSource>
<FontImageSource
FontFamily="Typicons"
Glyph="{x:Static common:IconFont.ArrowDownThick}"
Color="Black"
Size="18"/>
</Button.ImageSource>
</Button>

Resources:






Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay