by TsaoShin

Xamarin Tips: Round Button in Xamarin.Forms with Fonts

  1. Add font family to your shared app as an EmbeddedResource
  2. Register the font file with the assembly, in a file such as AssemblyInfo.cs, using the ExportFont attribute.
using Xamarin.Forms;using Xamarin.Forms.Xaml;[assembly: XamlCompilation(XamlCompilationOptions.Compile)][assembly: ExportFont(“fa-solid-900.ttf”, Alias = “fa-solid”)]
<Application.Resources><x:String x:Key="IconCheck">&#xf00c;</x:String></Application.Resources>
<ImageButton VerticalOptions="Center" HorizontalOptions="Center" BackgroundColor="Lavender" CornerRadius="25" WidthRequest="50" HeightRequest="50">
Glyph="{StaticResource IconCheck}"
Color="White" />



Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store