I can't display icons in my project.

I add icons to my project in the following order, but the icons are not displayed. A single icon appears instead of icons. I created a project in Metro Studio. I added the icons I wanted.

Create Font -> Generate Font -> Export

In this way, I obtained a font with a .ttf extension. I drag and drop it into the Resources/Font folder within the form. I set Build Action as Embedded resource.


App.xaml.cs [assembly: ExportFont("UIFontIcons.ttf", Alias = "FontIcons")] added.


My Code:

Margin="8"

FontSize="20"

HorizontalOptions="End"

Style="{StaticResource IconButtonStyle}"

Text="{StaticResource LinkedIn}"

TextColor="{DynamicResource Gray-800}"

VerticalOptions="Start"/>


ButtonSyle.xaml



What is the point I missed? Is there a video explaining font usage?







2 Replies

ÖZ Özgür December 16, 2021 05:30 AM UTC

Problem solved. I guess it's one of the compilation errors. Re-configuring the project fixed the issue.



TB Thirupathi Bala Krishnan Syncfusion Team December 16, 2021 06:33 AM UTC

Hi Özgür, 

We are glad to know that the reported issue has been resolved at your end. Please let us know if you need any further assistance on this. As always, we are happy to assist you. 

Regards, 
Thirupathi B. 


Loader.
Up arrow icon