Icon
Display from a variety of different icons.
Last updated
Display from a variety of different icons.
Last updated
Inherits from Xamarin.Forms.Label
We're used to having sleek icons on our web pages, and your mobile app should be no exception. Add icons from various libraries, ensuring your pages look polished and visually appealing.
Rock Mobile currently supports the following font families:
FontAwesome (default)
N/A
Automatically pick the first Font Awesome family that supports the requested icon in order of Regular, Solid and then Brands.
FontAwesomeSolid
FontAwesome5Free-Solid
FontAwesomeRegular
FontAwesome5Free-Regular
FontAwesomeBrands
FontAwesome5Brands-Regular
MaterialDesignIcons
MaterialDesignIcons
TablerIcons
TablerIcons
IconClass
string
The icon class name to use. This can be found on the FontAwesome website. If it specified fas fa-car
then you would use car
.
IconFamily
The icon font family to use to display the icon. Default value is FontAwesome.
FontSize
double
The size of the icon.
TextColor
The color of the icon to use by default.
Command
ICommand
The command to be executed when the user taps on the icon.
CommandParameter
object
The object to be passed as the parameter to Command
.
Use the Font Family name when definiting the IconFamily property with Rock:Icon. The Internal Font Name can be used to add an icon as an image within a Button.
The solid icons from Font Awesome free v5.11:
The regular icons from Font Awesome free v5.11:
The brand icons from Font Awesome free v5.11:
Many of the Material Design icons:
The outline variant icons from Tabler: