I have tried many things in Visual Studio, but I still can not display a glyph.
- Do I need to add a NuGet package? Which?
- Do I need a 'using ...;' in C#?
- Do I need a 'xmlns:...' in XAML?
- Should I display it with a "Label"?
I know in HTML, you just add a class to your element. But I am stumped in XAML. (It's cross-platform, right?)
This should a simple thing but I can not get any answers to function. Please provide an answer if you can do this and answer all points.
There is a correct plugin for Xamarin.Forms. This plugin not only has FontAwesome Font.
According to this example in github you must do the following:
[UPDATE]
On request from user3247130 I leave the complete example:
From Visual Studio or Xamarin Studio, install the following packages:
In the Android project,
MainActivityclass, OnCreate() method add:In the iOS project,
AppDelegateclass, FinishedLaunching() method, add similar lines:Also, in iOS project, info.plist add
Now, in your
XAMLwhere your have your toolbar, in tag, addand
[UPDATE 2]
This plugin has an issue on UWP platform. To run this plugin on UWP platform follow these steps:
First, create a folder called
Plugin.Iconize.FontAwesome.UWPinto%userprofile%\.nuget\packages\xam.plugin.iconize.fontawesome\2.0.0.29-beta\lib\UAP10\Second, create another folder called
AssetsintoPlugin.Iconize.FontAwesome.UWPfolderThird create anoother folder called
FontsintoAssetsfolderAnd finally copy iconize-fontawesome.ttf file (you shouldn't change their name).