Search code examples
c#silverlightxamlshadows

Inner Shadow Text with Silverlight


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.


Solution

  • 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