3

I've been trying for the last several hours to find a way to create inner shadows for text. Essentially I want to create effects similar to this in Silverlight: Inner text shadow with CSS

I was able to find some leads in this website (the closest seeming to be this question): Silverlight White text with Black Border? But nothing really came very close.

The only instances I have found were only to add inner shadows to rectangles and shapes. But the same method would not work on text as far as I am aware.

Does anyone have a way of achieving the effect either through xaml or code? I would much appreciate it.

Community
  • 1
  • 1
StephenT
  • 789
  • 1
  • 6
  • 18

1 Answers1

3

See this to get the outline (Path) of the text in Silverlight

Then, if you have the path, you can use this to generate a inner shadow

Emond
  • 50,210
  • 11
  • 84
  • 115
  • Not going to work for silverlight since it doesn't support visual brush. – Denis Jul 30 '11 at 06:43
  • 1
    @Denis, Did you read the article? There is a special reference to how to do this in Silverlight scroll down to "Inner Shadows with the Clip property". – Emond Jul 30 '11 at 06:46