I would like to have a TextBlock outlined (add stroke to text, not the TextBlock rectangle) in WP 7.1 but have no clue how to do that.
Asked
Active
Viewed 2,888 times
1
-
Did you try this? http://stackoverflow.com/questions/93650/apply-stroke-to-a-textblock-in-wpf – Justin XL Dec 08 '11 at 08:31
-
1Put TextBlock inside a Border – Ku6opr Dec 08 '11 at 08:57
-
@Ku6opr: Sorry, I guess I wasn't clear enough. I need to outline the text itself, not the TextBlock rectangle. – Filip Frącz Dec 08 '11 at 15:28
-
@Xin: Unfortunately this doesn't work for either Silverlight or WP7... – Filip Frącz Dec 08 '11 at 15:28
-
If the text is static you could create an Image with the Outline and show it instead. – BigL Dec 08 '11 at 16:32
1 Answers
0
Check out this blog writeup I am not sure if that is 100% what you want but there are several TextEffects you can apply to the text itself, you can also create your own text effects. MSDN is not highly informative. I did however find this on codeplex which may be exactly what the doctor ordered.

Etch
- 3,044
- 25
- 31
-
Works well for Silverlight, but the WP7 Silverlight flavor does not support the Effects. Go figure. I guess it was hurting performance and got taken out between CTP and WP7 RTM... – Filip Frącz Dec 08 '11 at 20:58