I used Material Design Icon Fonts for icon image in my Maui project. When I publish my project as exe file and run, icon images are not appear.
Please share me answer.
I used Material Design Icon Fonts for icon image in my Maui project. When I publish my project as exe file and run, icon images are not appear.
Please share me answer.
Copyright © 2021 Jogjafile Inc.
@CherryTun I tested the code in the link you provided, and it works well. Icon images are all able to display.
Here is my code implementation:
Icon Font to #Code:
Register the font in your MauiProgram.cs:
Use it in MainPage.xaml:
Update:
About it's not working when publish exe file of MAUI project, you can refer to this: Publish .NET MAUI Application as Windows Executable. There are other methods to publish exe file of MAUI project mentioned in the link. You can try it. Wish it can help you.