Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

White font with black border in XAML

as the title says, I would like to have a black font with a white border in my TextBox.

How could it be achieved?

Cheers.

like image 674
Jamie Avatar asked Dec 01 '10 23:12

Jamie


1 Answers

It's possible to convert text into geometry objects with advanced formatting like outlines and fills for individual letters - you can find out more about how to do that here.

Having said that, I'm not sure that this is possible inside a TextBox. It may be for read-only text (TextBlock) only.

Edit

This blog post shows some advanced font rendering techniques inside a TextBox. It may be handy for you.

like image 58
Matt Hamilton Avatar answered Sep 21 '22 15:09

Matt Hamilton