astropringles
astropringles

Reputation: 879

How to add fonticon or glyph in xamarin.forms xaml

In UWP XAML you can use TextBlock

<TextBlock FontFamily="Segoe UI Symbol" FontSize="40">&#xE114;</TextBlock>

or

FontIcon/Glyph

<FontIcon FontFamily="Segoe UI Symbol" Glyph="&#xE114;"/>

How does one do it in XAMARIN.FORMS?

Upvotes: 0

Views: 2439

Answers (1)

Breeze Liu - MSFT
Breeze Liu - MSFT

Reputation: 3808

you may also use the same style in UWP XAML.

for example,you can add a label in the portable project

<Label Text="&#xE700;" 
       FontFamily="Segoe MDL2 Assets"
       VerticalOptions="Center" 
       HorizontalOptions="Center" />

In the uwp test ,the text icon is showing in the device.

Upvotes: 3

Related Questions