I need to create an outer glow effect on a label and make it rotate a little (by about 20 degrees). I'm using the following code, but it's not working the way I want it to:
<Label Height="106" Margin="80,57,36,0" Name="lblHeading" FontSize="35">
Brian's 15th Birthday Party
<Label.Effect>
<DropShadowEffect BlurRadius="100" ShadowDepth="0" Opacity="1"
Color="White"/>
</Label.Effect>
</Label>
Is it possible to add some text somewhere in the Window and add an outer glow effect and rotation to it? It would be great if anyone can help me out with adding the same effect on a label or any other way to do so without using a label control.
I tried the following, too, but it's not helping. Maybe I don't know how to use it because it's just causing an error:
<OuterGlowBitmapEffect GlowColor="Blue" GlowSize="30" Noise="1" Opacity="0.4" />
BlurRadius
, setting it to 100 will make the effect close to invisible. I suggest 10.RenderTransformOrigin
to the point you want the text to rotate around (0.5, 0.5
means rotate around the center).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>
This is how you can rotate your label:
<Label>
<Label.LayoutTransform>
<RotateTransform Angle="20"/>
</Label.LayoutTransform>
<Label.Content>text</Label.Content>
</Label>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With