Outer Glow Effect and rotation On A Label in WPF

  1. You'll probably want to use a smaller BlurRadius, setting it to 100 will make the effect close to invisible. I suggest 10.
  2. Set the RenderTransformOrigin to the point you want the text to rotate around (0.5, 0.5 means rotate around the center).
  3. Add a RotateTransform inside Label.RenderTransform.

The complete code should look close to this:

<Label Height="106" Margin="80,57,36,0" Name="lblHeading" FontSize="35"
       RenderTransformOrigin="0.5, 0.5">
    Brian's 15th Birthday Party
    <Label.Effect>
        <DropShadowEffect BlurRadius="10" ShadowDepth="0" Opacity="1" 
                      Color="White"/>
    </Label.Effect>
    <Label.RenderTransform>
        <RotateTransform Angle="20"/>
    </Label.RenderTransform>
</Label>

Tags:

C#

Wpf

Xaml