How to use Font Awesome In .NET MAUI

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
hello guys welcome to my channel in this video I am going to show you demo about how you can use Font awesome icon in.net Mario application so from this website font awesome website I just downloaded this 6.2.0 fonts so let me add that font in uh dot net mavi application so this font I'm just going to add here in a resources folder and inside the fonts folder I'm just going to add that font okay now this fonts I'm just going to register here in uh my program.cs and here you can give any Alias name for this font so I'm just going to add fa brands so by that I will access this point okay now here there is a another website and that will convert icon to font code so it will convert fonts to Unicode so let me just add this font here so it just converted all fonts in Unicode format so these fonts now I can add in one class so let me just create here okay so I have created this class apply brand icon so in that I'm just going to add this all unicode so after that I can access this directly okay now here let me add one label and I'm just going to use now icons from this class so here I am going to add namespace of models folder because our class exists in a models folder so for accessing that class I'm just adding namespace here now here in a text I'm just going to set from this fa brand icon let me just use any icon and here font family will be the whatever the font Alias I have specified here so that I'm just going to use here now let me run the application so now it's going to display Amazon pay icon using font awesome okay so here it's displaying Amazon pay icon let me just change to some another icon okay so whatever the icon I select that they're going to display okay now here I specify font family here on label but you can do one thing like here in a Styles folder in a styles.jml just create one style for font awesome let me just create okay so now here in this uh favorite icon style I just set to font family as a this apple branch that I have specified here so now whenever I add label and I want to specify so here I no need to specify this font family every time now I can directly use style here so by that way I no need to hard code that font family name foreign here you also you can set text color like whatever the text color you said that you're going to change that font icon color also okay so that's a haul for today I hope you like this video and thank you so much for watching
Info
Channel: Programming With Pragnesh
Views: 7,127
Rating: undefined out of 5
Keywords: Font Awesome In .NET MAUI, How to use Font Awesome In .NET MAUI, .NET MAUI Font Awesome, MAUI Font Awesome, Font Awesome In MAUI, .net maui, net maui, maui c#, maui tutorial, maui .net, maui, C# maui, dotnet maui tutorial, blazor tutorial, blazor crud, .net maui app
Id: rYdJP2t7foU
Channel Id: undefined
Length: 6min 13sec (373 seconds)
Published: Sun Oct 02 2022
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.