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:
BillDetailSample
UI replicated in Xamarin Forms. For more information about, you can enter to my blog https://askxammy.com
Top comments (0)