In WPF, there are a number of effects you can add on top of UI like drop shadows, glows, blurs and more using Bitmap Effects. Adding Bitmap Effects is VERY easy. Below is an example of a drop shadow bitmap effect applied to a button.
The image above shows the key markup code used to apply this effect to the button. Not much to it eh? Below is the complete code that you can copy and paste into your editor.
<Button Margin="50" Width="200"> DropShadow Under this Button <Button.BitmapEffect> <DropShadowBitmapEffect Color="Black" Direction="320" ShadowDepth="25" Softness="1" Opacity="0.5"/> </Button.BitmapEffect> </Button>
Naturally you can apply Bitmap Effects programmatically as well. Here is an example (also applying a DropShadowBitmapEffect as above).
There are a few things you should note about bitmap effects.
1. Be careful using WPF bitmap effects. At the time I'm writing this, WPF bitmap effects are rendered in software mode. Any object that applies an effect will also be rendered in software. Bitmap effects should not be applied to large visuals. Also, animating properties of an effect can degrade performance. At this time, I suggest that you use bitmap effects sparingly and use them on relatively small visual UI objects like buttons, text boxes, etc. Feel free to animate effects, but again, I recommend relatively small, subtle animations.
2. Keeping #1 in mind, you can animate bitmap effects. See Bitmap Effects How-to Topics for several examples of animating bitmap effects.
3. Keeping #1 in mind, you can apply multiple bitmap effects to the same object. See How to: Create Multiple Visual Effects and How to: Animate Multiple Visual Effects. Check out Bitmap Effects How-to Topics to see screenshots and code examples for other types of bitmap effects and bitmap effect animations.