I am new with Xamarin.
I am using Xamarin using font-awesome 4.7 version, I am trying to add a ToolbarItem in the code behind:
var toolBarItem = new ToolbarItem
{
Icon = "",
}
In xaml file I can do something this:
<assets:Icon Text="" TextColor="#5DD046" FontSize="24" HorizontalOptions="Start" VerticalTextAlignment="Center" Margin="25,0,0,0"/>
But I need it to work in the code behind, can someone advise me how to go about it?
From code behind you can do like this
Or
Your original values is
""
, so for all values the same rule applies to change.