A DropShadowEffect can be used to make any WPF control cast a shadow. In order to use this on a text, we can simply assign the effect to the Effect property of the TextBlock.

DropShadowEffect contains properties to set the shadow depth, the direction, color of the shadow, opacity and a blur radius. This gives the shadow a soft edge.

<!-- Einfacher Schatten -->
<TextBlock Text="Text mit Schatten" Foreground="Green">
  <TextBlock.Effect>
    <DropShadowEffect ShadowDepth="4" Direction="330" Color="Black" opacity="0.5" BlurRadius="4"/>
  </TextBlock.Effect>
</TextBlock>