Search This Blog

Wednesday 22 July 2020

Xamarin Form How to Use Special Character on Xaml Page.

The following table shows the syntax for encoding this set of special characters:

HOW TO: USE SPECIAL CHARACTERS IN XAML
CharacterSyntaxDescription
<&lt;Less than symbol.
>&gt;Greater than sign.
&&amp;Ampersand symbol.
"&quot;Double quote symbol.


Example:
<Label FontAttributes="Bold" HorizontalTextAlignment="Start" VerticalTextAlignment="Center" HorizontalOptions="CenterAndExpand" Text="{Binding CurrentMonthYear}"   TextColor="White" FontSize="25" /
This will display < sign.

For more reference visit this link: https://docs.microsoft.com/en-in/dotnet/framework/wpf/advanced/how-to-use-special-characters-in-xaml






No comments:

Post a Comment

Popular Posts