Question

I want to use the airplane Segoe UI Symbol in my C#/XAML Windows Phone 8 application.

I am inserting the symbol into my page like this:

<TextBlock>&#x2708;</TextBlock>

The symbol appears correctly in the "preview" pane in Visual Studio:

Segoe UI airplane symbol correct

However, when I run the application in the simulator or on the phone, it appears like this:

Segoe UI airplane symbol incorrect

This symbol looks the same as the one found in the emoticon keyboard:

Airplane symbol on keyboard

How can I use the Segoe UI airplane symbol so that it appears totally white and not green as it appears in the emoticon keyboard?

Était-ce utile?

La solution

You can prevent this behaviour by setting the DisplayColorEmoji value to False (default is True):

<TextBlock TextOptions.DisplayColorEmoji="False">&#x2708;</TextBlock>

This will stop the conversion you're seeing.

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top