Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to use Segoe UI symbol in XAML

Seems like an easy one, but I can't figure out how to do/use these symbols. I want to use a U+E135 symbol and I can't figure out how to do it. Can someone give me a TextBlock example and also explain how I go about getting the hex equivalent to use in XAML. Thanks.

like image 407
user2334154 Avatar asked May 08 '13 12:05

user2334154


1 Answers

From the MSDN forums:

<TextBlock Text="&#xE26E;" FontFamily="Segoe UI Symbol">

The trick is to replace U+1234 with &#x1234;. The latter is an XML character entity.

Your platform must support this font in order for this to work.

like image 100
eric.michaelsen Avatar answered Oct 31 '22 03:10

eric.michaelsen