user2334154
user2334154

Reputation: 429

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.

Upvotes: 16

Views: 21085

Answers (1)

eric.michaelsen
eric.michaelsen

Reputation: 356

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.

Upvotes: 34

Related Questions