Use Font Awesome icons in .NET MAUI (Full guide)

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
use Font awesome icons in.net Maui it is very important When developing an application to use icons icons are better than texts and can be used in images texts and buttons in this tutorial we will learn how to use Font awesome icons in a.net Maui app download font awesome icons go to fantasem.com download the link in the description foreign [Music] [Music] [Music] click on button free for desktop to download icon files [Music] right click on zip file and choose extract here foreign [Music] [Music] [Music] foreign [Music] Maui new app open Visual Studio [Music] click on create new project [Music] choose Ned Maui app then next enter project name and choose location and next then create [Music] [Music] add font awesome icons files to project foreign [Music] select all files then right-click copy go to visual studio open resources folder then open fonts folder paste the files we copied before [Music] open Maui program class to configure icons using fonts.add font function to add icon files it take two parameters file name and Alias to call file by it [Music] [Music] [Music] thank you [Music] foreign [Music] open main page delete vertical stack layout in behind code [Music] add stack layout foreign [Music] by unicode gofantasem.com the link in the description search for any icon [Music] [Music] copy icon unicode foreign [Music] T page.resources tag and add X string tag give key name with X key and inside the tag put Unicode between disk characters like this [Music] [Music] foreign [Music] with image [Music] add image tag and enter height width inside image tag at image.source tag inside image.s hours tag add font image source tag [Music] give fond family a tribute value phas Alias name for Icon file give glyph attribute value of resources key we added in content resources before can change icon size from size attribute [Music] [Music] foreign [Music] with image [Music] foreign tag and enter height width inside image button tag add image button.source tag [Music] inside image button.source tag add font image source tag give font family attribute value phas Alias name for Icon file give glyph attribute value of resources key we added in content resources before [Music] foreign [Music] you can change icon size from size attribute [Music] foreign [Music] [Music] family attribute value phas Alias name for Icon file give text attribute value of resources key we added in content resources before foreign [Music] you can change icon size use font size attribute [Music] [Music] foreign [Music] [Music] foreign [Music] [Music] [Music] foreign [Music] [Music] using Icon by Unicode from c-sharp there won't be many edits go to mainpage.cs add property give it icon name [Music] in the Constructor initialize property with value backslash f118 add backslash U plus unicode [Music] give binding context value with this to bind main page.cs is The Binding context [Music] copy image image button label tags then paste them [Music] [Music] foreign [Music] static resource to binding to get icon from property in Main page.cs [Music] [Music] using font awesome helper font awesome helper is a static class contains all font awesome icons as properties this saves you from having to write all these properties manually I used a free tool to convert the icons file into properties that can be used from the link in the description how to use this helper first add new folder name it with helpers inside this folder create a new class name it font awesome Helper and don't forget to make it static foreign [Music] [Music] [Music] [Music] foreign [Music] copy properties from my class the link in the description paste it in your class [Music] [Music] foreign [Music] [Music] foreign [Music] space reference to helpers folder [Music] copy image image button label tags then paste them 4 glyph on image image button and text for label you will changes values to this attributes to [Music] x-static helper fontosome helper.face smile you can try to write any icon name this will be easy because autocomplete works [Music] foreign [Music] [Music] the link in the description [Music] [Music] foreign [Music]
Info
Channel: lite solutions
Views: 4,307
Rating: undefined out of 5
Keywords: .NET 6, Apps, App, developer, .NET MAUI, net maui, maui, dotNet, learn, course, how, tutorial, android, ios, create, visual, studio, icon, use, icons, font, FontAwesome, button, image, label, free, helper
Id: ShI1rd2BZFU
Channel Id: undefined
Length: 19min 12sec (1152 seconds)
Published: Thu Oct 06 2022
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.